62,041
社区成员
发帖
与我相关
我的任务
分享
if (GrowthProfileManager.OperationGP(GP))
{
//Page.ClientScript.RegisterStartupScript(this.GetType(), "OGG", "alert('添加 成功!');window.location.href='index.aspx'", true);
Response.Write("成功!");
return;
}
#region 自定义弹出窗口内容|AjaxShowWindows(string)
/// <summary>
/// 自定义弹出窗口内容
/// </summary>
/// <param name="msg">传入的消息内容</param>
public static void AjaxShowWindows(string msg)
{
//弹出确认对话框,点击“确定”后调用刷新事件
string script = "javascript:if(confirm('" + msg + "')==true) document.getElementById('ctl00_ContentPlaceHolder1_btn_reflash').click()";
ScriptManager.RegisterStartupScript((System.Web.UI.Page)HttpContext.Current.CurrentHandler, typeof(System.Web.UI.Page), "ShowWindows", script, true);
}
#endregion