随笔分类 -  Asp.Net

摘要:在WinForm中遍历代码: private void button1_Click(object sender, EventArgs e) { foreach (Control control in Controls) { if (control is CheckBox) { ((CheckBox)control).Checked = false; } if (control is TextBox... 阅读全文
posted @ 2011-03-07 04:38 Jon.Zhiwei@hotmail.com 阅读(297) 评论(0) 推荐(0)
摘要:protected void Page_Load(object sender, EventArgs e) { CreateControl(10); } private void CreateControl(int number) { for (int i = 0; i <= number; ++i) { TableRow tr = new TableRow(); TableCell tcleft ... 阅读全文
posted @ 2011-03-07 03:50 Jon.Zhiwei@hotmail.com 阅读(672) 评论(2) 推荐(1)
摘要:private void Init() { string sql = "select cbdisplayvalue,cbvalue from table where cbid="; int typecustomer = 4; int banzu = 5; int pinzhong = 1; string sql_customer = sql + typecustomer; string sql_banzu = sql + banzu; string sql_pinzhong = sql + pinzhong; DbCommand dcmd_customer = dbsqls 阅读全文
posted @ 2011-03-01 09:42 Jon.Zhiwei@hotmail.com 阅读(1896) 评论(0) 推荐(0)