冰斑竹,怎么以下报错的?
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
e.Row.Attributes.Add("onclick", "javascript:__doPostBack('" + e.Row.FindControl("LinkButton1").ClientID.Replace("_", "$") + "','')");
}
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
e.Row.Attributes.Add("onclick", "javascript:__doPostBack('" + e.Row.FindControl("LinkButton1").ClientID.Replace("_", "$") + "','')");
}
我是2.0超级菜鸟,请多多教导!