当前位置: 代码迷 >> ASP.NET >> Response.Redirect有关问题(散分)
  详细解决方案

Response.Redirect有关问题(散分)

热度:3673   发布时间:2013-02-25 00:00:00.0
Response.Redirect问题(散分)
我想先显示
Response.Write( " <script> alert( '创建成功! ') </script> ");
然后再转向另一页(我不想用 "Server.transfer ")
Response.Redirect( "xxx.aspx ");

但对话框却无法显示??怎样解决?



------解决方案--------------------------------------------------------
Response.write( " <script language=javascript> alert( '创建成功! ');window.location.href= 'xxx.aspx '; </script> ")
------解决方案--------------------------------------------------------
Response.Write( " <script> alert( '创建成功! ');window.location= 'xxx.aspx '; </script> ");
  相关解决方案