在 gridview 外查找 gridview中某个 textbox

来源:互联网 发布:大乐透算法公式 编辑:程序博客网 时间:2024/05/17 07:40
 GridViewRow row = null;
Control cmdControl = e.CommandSource as Control;
row = cmdControl.NamingContainer as GridViewRow;
string nownum = ((TextBox)row.Cells[3].FindControl("TxtNum")).Text.ToString();
原创粉丝点击