Response.Write("<script language=/"javascript/">alert('Save'); window.location.href='"+pageurl+"';</script>");
ScriptManager.RegisterStartupScript(this, this.GetType(), "s1", "alert('文件服务器中不存在此文件,请联系系统管理员!');window.location.href='" + pageurl + "';", true);
通过修改有两种解决方法一种:利用脚步跳转
Response.Write("<script>alert('dsafasdf');<script>");
Response.Write("<script>window.location.href='webform2.aspx'<script>");