gridview更新时获取编辑的值
前台有控件
TextBox txtname = (TextBox)GridView1.Rows[e.RowIndex].FindControl("textbox1"); Response.Write(txtname.Text);
前台无控件
string aa =((TextBox) (GridView1.Rows[e.RowIndex].Cells[2].Controls[0])).Text.ToString().Trim();
gridview更新时获取编辑的值
前台有控件
TextBox txtname = (TextBox)GridView1.Rows[e.RowIndex].FindControl("textbox1"); Response.Write(txtname.Text);
前台无控件
string aa =((TextBox) (GridView1.Rows[e.RowIndex].Cells[2].Controls[0])).Text.ToString().Trim();
转载于:https://www.cnblogs.com/cnxinwa/p/3443663.html