摘要:
呵呵,很可能是你没设置 autopostback为true 阅读全文
摘要:
protected void GridView1_RowCommand(object sender, GridViewCommandEventArgs e) //各按钮方法 { if (e.CommandName == "Editer") //编辑 { int Rowind... 阅读全文
摘要:
Response.Write(""); 阅读全文
摘要:
也谈谈动态绑定dropdownlist CSDN 2004年7月31日 阅读:4194次 关键字:DropDownList [GOOGLE搜索更多资料] 说来,很多的dropdownlist选项都不是固定的,是会动态改变的,一种方法是在页面上写死,改变时,直接修改页面就可以了。但是很多人是使用动态绑定的,因此dropdownlist的Text和Value是需要动态生成的。 首先我们来创... 阅读全文
摘要:
设置默认值:DropDownList1.Items[i].Selected=true;绑定:DropDownList1.DataSource = dataSet.Tables["Table1"].DefaultView; //指定DropDownList使用的表里的那些字段 DropDownList1.DataTextField = "ItemName"; //dropdownlist的Text的... 阅读全文