我对Ajax没有经验。我正在使用一个执行的webgrid:Ajax帮助涉及Webgrids
javascript:__doPostBack('GridView1','Select$1')
当一行被选中时。如何在发布时调用某些操作?
____UPDATE_ __ _ ___
protected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e)
{
if (e.Row.DataItemIndex == -1)
return;
e.Row.Attributes.Add("onMouseOver",
"this.style.cursor='hand';");
e.Row.Attributes.Add("onclick",
GetPostBackClientEvent(GridView1,
"Select$" + e.Row.RowIndex.ToString())
);
}
可能需要查看更多的代码?和肯定更多的信息? –
绝对。发布__doPostBack()函数。 – rgin
@rgin我发布了更多 –