piperzero 发表于 2013-1-22 22:34:40

弹出对话框并跳转页面

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>");
页: [1]
查看完整版本: 弹出对话框并跳转页面