摘要:
在Web.config中,数据库连接的种类:1、 1 2 4 前台System.Configuration.ConfigurationManager.ConnectionStrings["ConnectionString"].ToString();2、 1 2 3 前台System.Configuration.ConfigurationSettings.AppSett... 阅读全文
摘要:
1 if (ds.Tables[0].Rows.Count == 0)2 {3 AddDummyData(ds);4 } 1 private void AddDummyData(DataSet ds) 2 { 3 4 // Add a dummy row 5 6 Data... 阅读全文
摘要:
1 protected void GridView1_RowCreated(object sender, GridViewRowEventArgs e)2 {3 if (e.Row.RowType == DataControlRowType.DataRow )4 {5 e.Row.Attributes.Add("onmouseover... 阅读全文