Response.redirect无法在Internet Explorer 11中运行 [英] Response.redirect not working in Internet Explorer 11

查看:83
本文介绍了Response.redirect无法在Internet Explorer 11中运行的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我添加了一个cookie,之后我重定向到一个页面,但它没有重定向到该页面。它重定向到同一页面本身。这只发生在IE 10和IE 11上,它在Chrome和Mozilla中运行良好,如果有人有解决方案,对我来说很有帮助。

以下是我的代码

 HttpCookie sskCMT =  new  HttpCookie(  sskCMT,Request.Cookies [  kgmnId]。值) ; 
Response.Cookies.Add(sskCMT);
Response.Cookies [ kgmnId]。Expires = DateTime.Now.AddDays( - 1);
Response.Redirect( confirmation.aspx);

解决方案

Google;)

https://www.google.fr/search?hl=fr&q=response.redirect%20doesn't%20work%20in%20ie [ ^ ]


可能是Internet Explorer中的某些设置已更改。检查所有座位或所有设置将被重置。您可以尝试此链接更多信息如何更改设置。

http://windows.microsoft.com/en-in/internet-explorer/reset-ie-settings#ie=ie-11 [ ^ ]



或其他链接

http://support.microsoft。 com / kb / 923737 [ ^ ]

I added one cookie, After that i am redirecting to one page, But its not redirecting to that page. Its redirecting in same page itself. This happening only with IE 10 and IE 11, Its working fine in Chrome and Mozilla, If any one have solution, Its a great help to me.
Below is my code

HttpCookie sskCMT = new HttpCookie("sskCMT", Request.Cookies["kgmnId"].Value);
                Response.Cookies.Add(sskCMT);
                Response.Cookies["kgmnId"].Expires = DateTime.Now.AddDays(-1); 
 Response.Redirect("confirmation.aspx");

解决方案

Google ;)
https://www.google.fr/search?hl=fr&q=response.redirect%20doesn't%20work%20in%20ie[^]


it may be some setting changed in Internet Explorer. check out all seating or all setting will be reset. you can try this link more information how can change the setting.
http://windows.microsoft.com/en-in/internet-explorer/reset-ie-settings#ie=ie-11[^]

or another link is
http://support.microsoft.com/kb/923737[^]


这篇关于Response.redirect无法在Internet Explorer 11中运行的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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