Time of Update: 2018-12-03
編輯模板->頭模板和項目範本各放一個checkbox,頭模板中的改名字,如:all,另一個不用管.<script type="text/javascript" language="javascript">//指令碼實現 function getAll(chkSelectAll) { var item = document.getElementsByTagName("input"); for(i=0;i<item.length;i++
Time of Update: 2018-12-03
//選擇父節點時子節點同時被選中 反之...... <script language="javascript" type="text/javascript"> function getcheck() { var o = window.event.srcElement; if (o.tagName == "INPUT" && o.type == "checkbox")
Time of Update: 2018-12-03
//上傳代碼: protected void sh_Click(object sender, EventArgs e) { string filename = this.FileUpload1.FileName.Trim(); string path = "wenjian/" + filename;//把上傳的檔案放到名為wenjian這個檔案夾中 string a = Server.MapPath("./")
Time of Update: 2018-12-03
蘇東坡傳 意向的暗記 人間詞話 中國大歷史 中國哲學簡史 紅玫瑰與白玫瑰 / 傾城之戀 喜福會 麥田裡的守望者 野草 守望的距離 美國與中國 寬容 從文家書 傅雷家書 喜寶 / 連環 / 人淡如菊 生命中不能承受之輕 時代的精神狀況 聖經 渴望生活-凡高傳 時間簡史 長恨歌 活著 《一個女人的成長》 《提筆就老,潔塵女人書》<<挪威的森林>> <<飄>> <<寬容>> <<吉檀迦利>>
Time of Update: 2018-12-03
1.前台代碼: js: <style type="text/css"> .backgroudcolor { background-color:#D6FAF9; } .onmouservoer { background-color:#E9EDAF; } </style> <div> <asp:ScriptManager ID="ScriptManager1" runat="server">
Time of Update: 2018-12-03
using System;using System.Collections.Generic;using System.Linq;using System.Text;using BnbCRM.Models;using System.Data;using System.Data.OleDb;using System.Data.SqlClient;using System.IO;using System.Threading;using System.Configuration;{public
Time of Update: 2018-12-03
學到三層架構這部分,在開始接觸三層之前,會發出這樣的疑問,究竟什麼是三層架構呢?看下面這張圖,這是三層架構—— 這也是三層架構—— 這同樣還是三層架構——
Time of Update: 2018-12-03
Code highlighting produced by Actipro CodeHighlighter
Time of Update: 2018-12-03
控制項屬性集合:AttributeCollection類AttitudeCollection隸屬於namespace
Time of Update: 2018-12-03
XmlDocument xmldoc = new XmlDocument(); XmlElement xmlE = xmldoc.CreateElement("", "requestcancelorderinfo", ""); XmlNode root = xmldoc.AppendChild(xmlE); xmlE = xmldoc.CreateElement("", "customerid", ""); xmlE.InnerText =
Time of Update: 2018-12-03
1.讀取excel,放入datatable裡面: OleDbDataAdapter oda = new OleDbDataAdapter("select * from [" + sheename + "]", OLEDBConnStr); DataTable sourceDataTable = new DataTable(); oda.Fill(sourceDataTable);
Time of Update: 2018-12-03
DictionaryEntry類是一個字典集合,主要包含的內容是鍵/值對。這種組合方式可以方便地定位元據,其中的“鍵”具備唯一性,類似於資料庫中的“id”,一個id對應一天記錄,而一個鍵只對應一個值。使用DictionaryEnry類可以方便地設定和檢索資料。雖然被稱為字典集合,但DictionaryEntry並不包含一組資料,而只是一個“鍵/值”對,一般通過“IDictionaryEnumerator”、“IOrderedDictionary”或Hashtable來擷取DictionaryEn
Time of Update: 2018-12-03
private List<string> GetRevUser(string revString) { string sql = ""; revString = revString.Replace("/r", "").Replace("/n", "").Replace("——", "-").Replace("--", "-"); string[] membergroup = revString.Split(',');
Time of Update: 2018-12-03
using System;using System.Collections;using System.Configuration;using System.Data;using System.Linq;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.HtmlControls;using System.Web.UI.WebControls;using
Time of Update: 2018-12-03
在瀏覽有些網站時,發現圖片是在下拉捲軸時才載入,這是一個很不錯的使用者體驗。這一效果是通過JavaScript 編寫的 jQuery 外掛程式實現的,它可以消極式載入長頁面中的圖片. 在瀏覽器可視地區外的圖片不會被載入, 直到使用者將頁面滾動到它們所在的位置. 這與圖片預先載入的處理方式正好是相反的.在包含很多大圖片長頁面中消極式載入圖片可以加快頁面載入速度. 瀏覽器將會在載入可見圖片之後即進入就緒狀態. 在某些情況下還可以協助降低伺服器負擔.
Time of Update: 2018-12-03
//改變當前處理列的顏色protected void ASPxGridView1_HtmlDataCellPrepared(object sender, DevExpress.Web.ASPxGridView.ASPxGridViewTableDataCellEventArgs e) { if (e.DataColumn.FieldName == "LEFTMONEY") { if
Time of Update: 2018-12-03
//清除用戶端當前顯示 Response.Clear(); //作為附件輸出,filename=FileFlow.xls 指定輸出檔案的名稱,注意其副檔名和指定檔案類型相符,可以為:.doc .xls .txt .htm Response.AddHeader("content-disposition", "attachment;filename=callbackData.xls"); //顯示標題
Time of Update: 2018-12-03
1.點擊事件 protected void buts_Click(object sender, EventArgs e) { //清除用戶端當前顯示 Response.Clear(); //作為附件輸出,filename=FileFlow.xls 指定輸出檔案的名稱,注意其副檔名和指定檔案類型相符,可以為:.doc .xls .txt .htm
Time of Update: 2018-12-03
private void getorigndate(string sql) { DataSet dst = gs.GetDataBySql(sql); DataSet ds = new DataSet(); DataSet ds1 = new DataSet(); //第一步建立table columns DataTable newdt = new
Time of Update: 2018-12-03
System.Web.UI 命名空間System.Web.UI命名空間提供可用於建立用作 ASP.NET Web 應用程式使用者介面的 ASP.NET 伺服器控制項和 ASP.NET 網頁的類和介面。此命名空間包含 Control 類,該類為所有伺服器控制項提供一組通用功能的使用者控制項,其中包括 HTML 伺服器控制項、Web 伺服器控制項。此外,它還包括Page 類。每當請求 ASP.NET Web 應用程式中的某個 .aspx