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>");
本文介绍了一种使用JavaScript实现网页跳转并显示提示消息的方法。通过Response.Write结合<script>标签,可以实现在跳转前显示特定的消息。此外,还展示了如何注册StartupScript以实现相同的功能。
1590

被折叠的 条评论
为什么被折叠?



