GridView实质是个表格,现在想做成点表格的某一行页面跳转而不是点到连接上才跳转,比如像Gmail那样的。在GridView的行的第一列用了模版列,里面有一个LinkButton,具体的大家看下面一句代码就知道了。如果这么写:protected void GV_HotActiviy_RowDataBound(object sender, GridViewRowEventArgs e)
{e.Row.Attributes.Add("onclick", ((LinkButton)e.Row.Cells[0].FindControl("LBtn_Title")).CommandArgument + "'");......
}报错说引用为空,e.Row.Cells[0].Control[0]、e.Row.FindControl("LBtn_Title")也为空。。 郁闷了。。请问怎么得到这个LinkButton啊!?