原创 公用SQLHelper類-數據訪問層文件

using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Configuration; using

原创 asp.net讀寫xml

//獲取合同信息 string projectNo = Request.QueryString["projectNo"]; string Sql="select * from tabl

原创 中文轉繁體的js

 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://ww

原创 ASP.NET操作Excel---上傳Excel後解析Excel文件

<tr> <td width="16%" class="c_tdleft"> 上傳Excel文件: </td>

原创 asp.net簡單讀取xml文件信息

            //以下是循環讀取xml文件中節點的值                 XmlDocument xmlDoc = new XmlDocument();                 xmlDoc.Load(Ser

原创 C#上傳圖片返回要保存的圖片名

/// <summary> /// 刪除文件 /// </summary> /// <param name="saveFilePath">文件保存路徑</param> /// <param name

原创 C#隨機產生數字

private int rep = 0; private string GenerateCheckCodeNum(int codeCount) //產生不重複的數字 { string str = s

原创 ASP.NET+css漂亮的多行文本框

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd

原创 sql批量操作數據庫,刪除表,刪除數據庫,刪除存儲過程,刪除視圖

--刪除所有表的外鍵約束-- DECLARE c1 cursor for select 'alter table ['+ object_name(parent_obj) + '] dropconstraint ['+name+']

原创 JS操作Iframe獲取到Iframe中的內容+ListView+DataPager分頁

<%@ Page Language="C#" AutoEventWireup="true" CodeFile="Default.aspx.cs" Inherits="_Default" %> <!DOCTYPE html PUBLIC

原创 JS彈出窗口+屏蔽效果

<script language="javascript"> function alertWin(title, msg, w, h){ var s=document.getElementsByTagName("selec

原创 JS做的網站團購倒計時

JS函數如下: <script type="text/javascript"> <!-- function showTimeIsBegin(time){ var self=this; //下面這句爲重點,setTimeout這個函數我就不

原创 JS簡單操作select和dropdownlist

<select id="selectID" οnchange="return showMessage()"> <option value="0">==請選擇==</option>

原创 js指定移除數組裏面元素

關鍵字: js javascript array   JavaScript中splice函數方法是從一個數組中移除一個或多個元素,如果必要,可以在所移除元素的位置上插入新元素,返回所移除的元素。    Java代碼 arrayObj

原创 計算一段程序的運行時間

using System.Diagnostics; protected void getApplicationTime() { Stopwatch sw = new Stopwatch();