您的位置:首页 > 其它

GridView 模板列 在后台获取该行某控件的值 例如批量修改

2016-12-29 00:00 239 查看
protected void txtFILESAVEFEE_TextChanged(object sender, EventArgs e)
{
TextBox t = (TextBox)sender;
int Index = ((GridViewRow)(t.NamingContainer)).RowIndex;//获得行号
GridViewRow gRow = GridView1.Rows[Index];
TextBox tb = (TextBox)gRow.FindControl("txtFILESAVEFEE");

Response.Write("<script>alert('" + tb.Text.ToString() + "')</script>");
}
}
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: