天天看點

asp.net 背景驗證成功(彈出對話框)并跳轉?不能實作

原始

Context.Response.Write("<script></script>");
 Response.Redirect();      

解決辦法:

ClientScript.RegisterStartupScript(this.GetType(), "Success", "<script type='text/javascript'>alert('添加成功');window.location='AddAnLi.aspx';</script>'");      

轉載于:https://www.cnblogs.com/2515593227blog/p/6273159.html