摘要: /// /// 將Gridivew中的數據導出為Excel /// /// Gridview名稱 /// 要保存的文件名 public void ExportToExcel(Control ctrl, String FileName) { GridView gv = (GridView)ctrl; gv.AllowPaging = false;//禁用Gridview的分页 gv.AllowSorting = false;//禁用Gridview排序 gv.DataBind(); H... 阅读全文
posted @ 2010-07-28 11:21 斌斌NO1 阅读(1674) 评论(0) 推荐(0) 编辑
摘要: Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/-->protectedoverridevoid OnPreRender(EventArgs args) { base.OnPreRender(args); txtPassword.Attributes["value"] = txtPassword.Text; txtRetypePassword.Attributes["value"] = txtRetypeP. 阅读全文
posted @ 2010-07-28 11:09 斌斌NO1 阅读(501) 评论(0) 推荐(1) 编辑