Click here to Skip to main content
15,887,596 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I testing on IE 10 standards mode.I have a Login.aspx page which is in Login directory(i.e Login/Login.aspx). I do response.redirect to a page Default.aspx which is a page in root directory(ie.Response.Redirect("../Default.aspx",true);).Also tried ~/Default.aspx to navigate to root. But instead of going to Default.aspx control reaches to Login.aspx. I do observe in IE developer's tool that it hits Default.aspx but transaction time <1ms.i see it do not hit init/load event defined in default.aspx(by setting debugger point).Instead of redirect if i use Server.transfer it works but i want it to work with redirect only. Also it works fine in my colleagues machine without making any change and also on latest firefox and chrome on my machine it works fine. It works fine on IE9 standard too on my machine but not on IE 10 standard. Anyone happen to know if any setting or something i am missing. Thanks in advance
Posted
Comments
ZurdoDev 18-Mar-13 13:08pm    
What exactly is the issue?
devcode007 18-Mar-13 13:20pm    
Navigation from Login.aspx to Default.aspx is not happening only on IE10 Std mode.(IE 10 comp. mode,IE9 std mode, Chrome,firefox all working fine.
Method of navigation i am using is Response.redirect from Login page.
Most annoying is that , it is happening in only my development machine.
I observed this behavior both with VS development server and with IIS 7.5 on my machine.
Hope that helped you
ZurdoDev 18-Mar-13 13:56pm    
I have never seen Response.Redirect be browser specific. I have IE10 win7 and it works fine. I think you must have some sort of setting regarding redirects. Server.transfer works because it does not roundtrip to the client. Some setting, in IE likely, is not allowing the redirect. However, if it goes to Login.aspx then it may be an issue with your FormsAuthentication settings. Maybe try adding to trusted sites and see what happens.
devcode007 18-Mar-13 14:22pm    
hi, you did point me to right direction. I reached to this post http://stackoverflow.com/questions/7571227/formsauthentication-working-in-every-browser-except-for-ie.
I dont have entire idea yet how it worked. But after i made change to my webconfig's:
<authentication mode="Forms"> cookieless="UseCookies" attribute for my login page, it worked.
Earlier the value for cookieless was set as 'UseDeviceProfile'.
Thanks
ZurdoDev 18-Mar-13 14:25pm    
It must be a setting in IE for your zone possibly. It was blocking cookies.
Good to hear you got it working.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900