0
GridView控件不工作,我想選擇的GridView的行我用下面的代碼:JavaScript的內部下母版頁
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.RowType == DataControlRowType.DataRow)
{
e.Row.Attributes.Add("onclick", String.Format("javascript:__doPostBack('this','Select${0}')", e.Row.RowIndex));
}
}
它工作正常,但使用母版頁後,它的工作停止。 請建議。
我的問題,開始使用下面的代碼後問題.. e.Row.Attributes [ 「的onclick」] = ClientScript.GetPostBackClientHyperlink(this.GridView1, 「選擇$」 + e.Row.RowIndex); – ravi