弹出提示,跳转页面

ScriptManager.RegisterClientScriptBlock(this.Page, this.GetType(), "", "alert('操作成功!');window.location=XXX.aspx';", true);

web.config中配置

<customErrors mode="On" defaultRedirect="Error.aspx"/>

原文地址:https://www.cnblogs.com/Jack_G/p/2278149.html