急等!望帮忙,GridView双击选种一行的某列值传到TextBox GridView 与SqlDataSource或者DataSet绑定 比如 一列 id 一列 name现在需要双击的时候得到id 传到TextBox.Text 望给出代码(C#) 谢谢 急等 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 TextBox txtBox;<script></script>protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e) {DataRow dr = (DataRow)e.Row.DataItem; if (e.Row.RowType == DataControlRowType.DataRow) { e.Row.Attributes.Add("ondblclick", "JavaScript:document.getElementById('" txtBox.ClientID + "').value=" + dr["id"].ToString() ); } } 不好意思 我表述有误是把选到id传到 另外一个页面(add.aspx)的TextBox 求助:无法获取查询字符串字节数 这是神马错误? 我上传文件了,为什么却没有给我积分? *.ASP网页如何防被人下载? HttpModule问题 页面重定向问题 .Net 如何调用java的API 关于ASP的一个小问题,大家帮忙 共用同一页面问题 !!!!! webForm中调用WinForm控件问题,亟待解决,谢 挑战高手的难题: 对于要求分组显示的数据如何绑定到表格? 谢谢!!! 急求:在adrotator中如何使用数据表 MapPath问题
<script>
</script>
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
DataRow dr = (DataRow)e.Row.DataItem;
if (e.Row.RowType == DataControlRowType.DataRow)
{
e.Row.Attributes.Add("ondblclick", "JavaScript:document.getElementById('" txtBox.ClientID + "').value=" + dr["id"].ToString() );
}
}
是把选到id传到 另外一个页面(add.aspx)的TextBox