摘要: public class ImportExportToExcel { private string strConn ; private System.Windows.Forms.OpenFileDialog openFileDlg=new System.Windows.Forms.OpenFileDialog(); private System.Windows.Forms.SaveFileDial... 阅读全文
posted @ 2010-03-19 09:04 与时俱进 阅读(324) 评论(0) 推荐(0) 编辑
摘要: namespace ImportExportToOffice{ using System; using System.ComponentModel; using System.Data; using System.Windows.Forms; public class ImportExportToWord { private Word.ApplicationClass oWordApplic; p... 阅读全文
posted @ 2010-03-19 09:02 与时俱进 阅读(538) 评论(0) 推荐(0) 编辑
摘要: 一、private void RetainScrollPosition(){StringBuilder saveScrollPosition = new StringBuilder ();StringBuilder setScrollPosition = new StringBuilder ();RegisterHiddenField("__SCROLLPOS", "0");saveScrollP... 阅读全文
posted @ 2010-03-19 08:58 与时俱进 阅读(261) 评论(0) 推荐(0) 编辑
摘要: 减少ViewState的办法可以大大加快客户端的下载显示速度,但是频繁的数据库访问将加大服务器的压力;使用ViewState可以减轻服务器的压力,但是又加大了客户端的下载时间,它们是互相矛盾的。 DataGrid保存在ViewState中的数据分为两个部分,一部分是保存索引用的,就是DataKeys和DataItems这样的属性使用的数据,我们把它称之为索引数据。还有一部分是DataGrid中数据... 阅读全文
posted @ 2010-03-19 08:56 与时俱进 阅读(351) 评论(0) 推荐(0) 编辑
友情链接:同里老宅院民居客栈
点击右上角即可分享
微信分享提示