asp.net中怎样取到gridview模板中的控件如题 谢谢了

this.gvUseInfo.FindControl("btnDel") as Button; 这样写可以吗
2025-03-07 00:31:13
推荐回答(1个)
回答1:

在GridView1_RowDataBound 中事件才能获得 获得方式是:e.Row.FindControl("btnDel") as Button;