前台怎么获得gridview正在编辑行控件的ID
如题。。
------解决方案--------------------
后台:
public int rowIndex = 0;
protected void GridView1_RowEditing(object sender, GridViewEditEventArgs e)
{
rowIndex = e.NewEditIndex;
}
前台:
document.getElementById("<%=GridView1.ClientID%>").rows["<%=rowIndex%>"].getElementsByTagName("input")[2].value