摘要:protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { createTable(); } } private void createTable() //创建一个表 { D...
阅读全文
摘要:1 委托 this.ultraGrid1.AfterCellUpdate -= new Infragistics.Win.UltraWinGrid.CellEventHandler(this.ultraGrid1_AfterCellUpdate); this.ultraGrid1.Rows[0].Cells["字段名"].Value = ""; this.ultraGr...
阅读全文
摘要:C#日期格式化 日期转化一 为了达到不同的显示效果有时,我们需要对时间进行转化,默认格式为:2007-01-03 14:33:34 ,要转化为其他格式,要用到DateTime.ToString的方法(String, IFormatProvider),如下所示: using System; using System.Globalization; String format="D"; DateTime...
阅读全文
摘要:select A.ID,A.V_Name,A.V_FileType, 0 as i_masterid,A.I_Size,A.v_serPath,A.v_serpath+A.v_serfilename filepath from P_FixFileList A where A.ID NOT IN (SELECT I_FixFileListID FROM P_DocFixFileList...
阅读全文
摘要:使用javascript操作GridView(获取当前行的值) function getIt(obj) { var r,c o = obj while(o.tagName != "TD" && o.tagName != "TH") o = o.parentNode if(o.tagName != "TD" && o.tagName != "TH") return c = o.cellIndex ...
阅读全文