Sign In| Join
Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Nov 24, 2012 09:38 AM by oned_gk
Member
310 Points
340 Posts
Nov 24, 2012 09:18 AM|LINK
Hi, I am trying to redirect my user from my login page to a non-default page should he access to a non-default page directly. The Page.Request.UrlReferrer session variable returns me a value like this:
http://localhost:12345/Index.aspx?ReturnUrl=%2fAboutMe.aspx
Is there a proper way to call or format the url like:
http://localhost:12345/AboutMe.aspx
Thanks.
Contributor
2613 Points
453 Posts
Nov 24, 2012 09:30 AM|LINK
You can get your querystring variable value with help of Request as -
Response.Redirect(Request["ReturnUrl"]);
All-Star
31709 Points
6477 Posts
Nov 24, 2012 09:38 AM|LINK
k80sg
Member
310 Points
340 Posts
Directing from login page with Page.Request.UrlReferrer
Nov 24, 2012 09:18 AM|LINK
Hi, I am trying to redirect my user from my login page to a non-default page should he access to a non-default page directly. The Page.Request.UrlReferrer session variable returns me a value like this:
http://localhost:12345/Index.aspx?ReturnUrl=%2fAboutMe.aspx
Is there a proper way to call or format the url like:
http://localhost:12345/AboutMe.aspx
Thanks.
anil.india
Contributor
2613 Points
453 Posts
Re: Directing from login page with Page.Request.UrlReferrer
Nov 24, 2012 09:30 AM|LINK
You can get your querystring variable value with help of Request as -
codepattern.net/blog ||@AnilAwadh
oned_gk
All-Star
31709 Points
6477 Posts
Re: Directing from login page with Page.Request.UrlReferrer
Nov 24, 2012 09:38 AM|LINK