tags:

views:

7

answers:

0

Hi All,

I redirect the unauthenticated user to login page as /User/Login?returnUrl=blabla to after login redirect the user back to the page where he/she was. I have a form in the login page with action="/User/Login". When the user submits i can not get the QueryString value ReturnUrl. I guess this is happening because i am posting to /user/login but not to user/login?returnUrl=blabla.

I tried action="<%= Request.QueryString etc %>" but it doesnt see the request object that way. I could not understand why.

How can i modify my code or markup to achieve what i want?

Thanks All.