protected void Button1_Click(object sender, EventArgs e) { String strConn; strConn = ConfigurationManager.ConnectionStrings["ConnectionString"].ConnectionString; SqlConnection Conn = new SqlConnection(strConn);//定义新的数据连接控件并初始化 Conn.Open();//打开连接 try ... Read More
posted @ 2013-01-23 14:49 double_ed Views(257) Comments(0) Diggs(0) Edit
public static void Export(DataTable Dt, string FileName, HttpResponse Response, bool AppendHeader) { StringBuilder sb = new StringBuilder(); int countOfColumns = Dt.Columns.Count; int countOfRows = Dt.Rows.Count; if (AppendHeader) { ... Read More
posted @ 2013-01-23 10:35 double_ed Views(251) Comments(0) Diggs(0) Edit