再,再,再开一贴,girdview点击行的问题~来人帮忙阿
protected void gvReceive_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
e.Row.Attributes.Add( "onclick ", "window.open(DataNavigateUrlFormatString= 'ReceiveTest.aspx?id= " + e.Row.Cells[0].Text + " '); ");
}
}
我要点击一行传一个页面 但是我gridview中有一列checkbox点击也传到那页
想点击checkbox不传到这个页面怎么办呀?~
------解决方案--------------------想点击checkbox不传到这个页面怎么办呀?~
============
try ->
<asp:templatefield>
<itemtemplate>
<asp:checkbox onclick= "window.event.cancelBubble = true; " ...