protected void Page_Load(object sender, EventArgs e)
{
if (!IsPostBack)
{
LoadData();
}
else
{
string requestArg = GetRequestEventArgument(); // 此函数所在文件:PageBase.cs
if (requestArg.StartsWith("ReloadGrid$"))
{
LoadData();
}
}
}
protected void Grid1_RowDoubleClick(object sender, GridRowClickEventArgs e)
{
string windowURL = String.Format("~/BasicInfo/client_view.aspx?id=<script>{0}</script>", Grid1.DataKeys[e.RowIndex][0].ToString());
// Window1.GetShowReference(""~/BasicInfo/client_view.aspx?id={0}"", "新增客户");
//PageContext.RegisterStartupScript(Window1.GetShowReference("../BaoXiao/ShenHe.aspx?djbh=" + Grid1.DataKeys[e.RowIndex][0].ToString() + "&buzhou=0") + Window1.GetMaximizeReference());
PageContext.RegisterStartupScript(Window1.GetShowReference(windowURL, "查看详细信息"));
}
<script>
function reloadGrid(param) {
__doPostBack(null, 'ReloadGrid$' + param);
}
</script>
|