摘要:
public class ImportExportToExcel { private string strConn ; private System.Windows.Forms.OpenFileDialog openFileDlg=new System.Windows.Forms.OpenFileDialog(); private System.Windows.Forms.SaveFileDial... 阅读全文
摘要:
namespace ImportExportToOffice{ using System; using System.ComponentModel; using System.Data; using System.Windows.Forms; public class ImportExportToWord { private Word.ApplicationClass oWordApplic; p... 阅读全文
摘要:
一、private void RetainScrollPosition(){StringBuilder saveScrollPosition = new StringBuilder ();StringBuilder setScrollPosition = new StringBuilder ();RegisterHiddenField("__SCROLLPOS", "0");saveScrollP... 阅读全文
摘要:
减少ViewState的办法可以大大加快客户端的下载显示速度,但是频繁的数据库访问将加大服务器的压力;使用ViewState可以减轻服务器的压力,但是又加大了客户端的下载时间,它们是互相矛盾的。 DataGrid保存在ViewState中的数据分为两个部分,一部分是保存索引用的,就是DataKeys和DataItems这样的属性使用的数据,我们把它称之为索引数据。还有一部分是DataGrid中数据... 阅读全文