【发布时间】:2012-02-02 17:08:09
【问题描述】:
我正在尝试在 asp.net 的 GRID VIEW 控件中执行更新操作。
我的代码:
protected void GridView1_RowUpdating(object sender, GridViewUpdateEventArgs e)
{
TextBox t1 = new TextBox();
t1 = (TextBox)GridView1.Rows[Convert.ToInt16(HiddenField1)].Cells[3].Controls[0];
}
当我运行时,我收到错误消息“无法将'System.Web.UI.WebControls.HiddenField' 类型的对象转换为'System.IConvertible'”
谁能帮我提出解决方案?
【问题讨论】: