Response.Redirect无法在Firefox中正常工作的IE中工作 [英] Response.Redirect is not working in IE which works fine in firefox

查看:104
本文介绍了Response.Redirect无法在Firefox中正常工作的IE中工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

HI,

在按钮中,单击事件Response.Redirect在IE中不起作用.但是它可以在ff和chrome中正常工作.

谷歌搜索后,我尝试了这些

HI ,

In a button click event Response.Redirect is not working in IE. But it is working in ff and chrome fine.

after googling i tried these also like

Response.Redirect("deliverypage.aspx");

Response.Redirect("deliverypage.aspx",false);


在脚本块中,我也尝试过此操作


in script block, i tried this also

window.open("deliverypage.aspx");


server.transfer("deliverypage.aspx");

也不起作用->

is also not working --> when i call server.transfer the page load event in deliverypage is also firing, but the my page is not redirecting.

推荐答案

如果您使用查询字符串表示我.最多只能接受2083个字符. Firefox,Chrome和其他浏览器则没有.
If you using query-string means I.E. Only accepts up to 2083 characters. Firefox,Chrome and others do not.


尝试:
Response.Redirect("~/deliverypage.aspx");


在客户端,您应该更改window.location.href属性以将当前窗口重定向到另一个网址.
请参阅: http://www.ezineasp.net/post/Javascript-Window-Location- Href-URL.aspx [ ^ ]
On client side you should change window.location.href property to redirect current window to another url.
See: http://www.ezineasp.net/post/Javascript-Window-Location-Href-URL.aspx[^]


这篇关于Response.Redirect无法在Firefox中正常工作的IE中工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆