Common.Alert(Page, "message") // 这是自己写的一个弹出对话框的方法,就是注册一个javascript的脚本单独用没问题;如果加在一个跳转语句前面或后面,如Common.Alert(Page, "message");
Response.Redirect("Default.aspx");这样就不会弹出对话框了,为什么??
Response.Redirect("Default.aspx");这样就不会弹出对话框了,为什么??
解决方法是跳转也在脚本里实现,
alert("string");window.location="url";
alert("string");window.location.href="url";