ScriptManager.RegisterClientScriptBlock(this.Page, this.GetType(), "", "alert('操作成功!');window.location=XXX.aspx';", true);
web.config中配置
<customErrors mode="On" defaultRedirect="Error.aspx"/>
ScriptManager.RegisterClientScriptBlock(this.Page, this.GetType(), "", "alert('操作成功!');window.location=XXX.aspx';", true);
web.config中配置
<customErrors mode="On" defaultRedirect="Error.aspx"/>