Author: LeBesjamain | Posted on: 8/24/2010 5:56:43 AM | Views : 352

Hello,
I'm building my asp.net 4.0 website with url routing. It works great, except that I have stumbled upon one problem. The problem is that when a logged in user is on one of the non-public pages and gets loged out, the return url is set to the page he or she was previously visiting. When logging in again, the ReturnUrl is non routed url (something like login.aspx?ReturnUrl=somethingsomething). This poses a problem for some of my pages where I have a default value stored in the route; it simply doesn't get picked up with the non routed url of the ReturnUrl.The result is a broken page (404). How can I fix this?
 
With kind regards,
 
LeBesjamain
...

Go to the complete details ...