您的位置:首页 > 其它

.net如何从后台获取repeater中的控件值

2011-08-15 12:01 225 查看
repeater OnItemCommand 事件中
TextBox txt = (TextBox)e.Item.FindControl("repeater中控件名称");
然后执行数据库更新操作,更新数据

foreach (RepeaterItem item in Repeater1.Items)
{
TextBox txtNiName = (TextBox)item.FindControl("txtNiName");
string name=txtNiName.text;
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: