您的位置:首页 > 编程语言 > ASP

ASP.NET 使用response.redirect( "url ")跳转后,页面记录没刷新。

2011-07-07 10:15 1171 查看
如果是使用“本页提交,本页显示”的话,使用response.redirect( "url ")是可以刷新记录的,如果是使用“本页提交,另页显示”的话,使用response.redirect( "url ")就有可能页面记录不能自动刷新!
解决办法:
1、
response.write ("<script>")
response.write ("alert('xxx')")
response.write ("window.location='xxx.aspx'")
response.write ("<script>")
alert('xxx'); 相当于延迟了一上。

2、response.write (<meta http-equiv='refresh' content='0.1;url=http://www.dreamershop.com'>)
用这个可以做一个处理数据成功的提示页面,1秒以后跳转也可以。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐