ReturnUrl Null

G

Guest

I am trying to redirect users upon login to the pages they requested using
FormsAuthentication, but keep getting an error because my ReturnUrl is null.
Can anyone help me figure out why is this? I am using C# on a Asp.Net 1.1
page.

HS
 
B

Brock Allen

If they typed in login.aspx directly then there won't be the QueryString.
If you just call FormsAuthentication.RedirectFromLoginPage then it will handle
both scenarios (when there is and isn't a ReturnUrl) for you properly.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,995
Messages
2,570,228
Members
46,818
Latest member
SapanaCarpetStudio

Latest Threads

Top