...的已选中(html控件checkbox)的一列的id值给文本框textbox
发布网友
发布时间:2024-09-28 15:49
我来回答
共1个回答
热心网友
时间:2024-10-07 05:16
在gridview的行绑定onclick script,
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
if ( e.Row.RowType == DataControlRowType.DataRow)
{
e.Row.Attributes.Add("onclick", "document.getElementById('textboxid').value='" + e.Row.Cells[1].Text + "';");
}
}
热心网友
时间:2024-10-07 05:23
在gridview的行绑定onclick script,
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
if ( e.Row.RowType == DataControlRowType.DataRow)
{
e.Row.Attributes.Add("onclick", "document.getElementById('textboxid').value='" + e.Row.Cells[1].Text + "';");
}
}