日期:2014-05-18  浏览次数:20557 次

response.write后马上运行response.redirect,response.write没反应为什么?
response.write就是放上一个alert。然后跳转页面。可是页面是跳转了。alert没运行。。。我就想让他跳出个提示。然后再跳转。该怎么办?

------解决方案--------------------
服务器端代码先执行,没有到客户端就转向了

这样
response.write ( " <script> alert( ' ');location= 'v.aspx ' </script> ")
------解决方案--------------------

Response.Write( " <script> alert( ' ');window.location.href= ' '; </script> ");