我对 Ajax 没有经验。我正在使用执行的 webgrid:
javascript:__doPostBack('GridView1','Select$1')
选择行时。发布时如何调用某些操作?
____更新_ __ _ ___
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())
);
}