我用:
Page.RegisterStartupScript......
Response.Redirect( "1.aspx ");
不行 不弹出提示信息对话框
------解决方案--------------------------------------------------------
因为页面已经跳转了,当然不会执行了.
------解决方案--------------------------------------------------------
Page.RegisterStartupScript......
Response.Redirect( "1.aspx "); //此句 执行后直接跳转,服务器端不会向客户段发送任何html包括js.
故此处不能用Response.Redirect.
用:
widnow.location.href= '1.aspx '
------解决方案--------------------------------------------------------
笨方法:A页面提交后转到B页面,B页面直接再转到A页面....
------解决方案--------------------------------------------------------
stringscript= " <script> alert( '操作成功! ');window.location.href= 'ShenGouDan.aspx '; </script> ";
Page.RegisterStartupScript( " ",stringscript);
Response.Write(sUrl);
------解决方案--------------------------------------------------------
不用导向
去掉这句
Response.Redirect( "1.aspx ");
试一下