摘要:
最近项目中用到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 = (TextBox)c; //tb.Text = "Te 阅读全文
posted @ 2013-01-09 14:03
随风任飘遥
阅读(855)
评论(0)
推荐(0)

浙公网安备 33010602011771号