在GridView中使用FindControl
摘要:
最近项目中用到FindControl和GridView,整理了一下几种使用方法,留作资料。 1、在选择(SelectedIndexChanged)事件中使用 //获得被选择行的TextBox1 protected void gv1_SelectedIndexChanged(object sender, EventArgs e) { //Control c = this.gv1.Rows[this.gv1.SelectedIndex].FindControl("TextBox1"); //TextBox tb = ... 阅读全文
posted @ 2013-08-13 21:34 YoungPop_Chen 阅读(317) 评论(0) 推荐(0)
浙公网安备 33010602011771号