摘要:
1、从GridView的模板列中插入Label控件,如何在选中行中找出该控件,并取出其Text的值。 protected void newsList_SelectedIndexChanged( object sender,EventArgse) {LabelmyLabel=(Label)n... 阅读全文
2007年5月6日 #
2007年5月5日 #
摘要:
c# 日期函数 DateTime dt = DateTime.Now;Label1.Text = dt.ToString();//2005-11-5 13:21:25Label2.Text = dt.ToFileTime().ToString();//127756416859912816Labe... 阅读全文
摘要:
长时间使用2.0的控件可能会使程序员退化的不会写代码,下面的代码是使GridView绑定到DataSet或DataReader上。 1 private void Bind() 2 {3stringdbConnection=ConfigurationManager.ConnectionStr... 阅读全文