By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
434,849 Members | 2,339 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 434,849 IT Pros & Developers. It's quick & easy.

How to keep RETURNURL in the URL if incorrect password?

P: n/a
I'm coding up C# CodeBehind source code for a Logon.aspx file. I have a newbie few
questions:

1) If a PostBack comes in and you return from it (rather than redirect) then will the
original arguments in the URL (e.g. RETURNURL) stay there? Or does one have to put
those arguments back in the URL?

2) Does RETURNURL return the same thing as FormsAuthentication.RedirectFromLoginPage
will take you to?
ReturnURL = Request.QueryString["RETURNURL"];
Response.Redirect(ReturnURL);
versus:
FormsAuthentication.RedirectFromLoginPage(UserName .Text, Remember.Checked);

Are they equivalent?
Dec 4 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
After a postback the url parameters are present as they were before.

Use reflector to look at - but as far as I can remember they are equal.

--
Daniel Fisher(lennybacon)
http://www.lennybacon.com
"Randall Parker" <NOtechieSPAMpundit_please@future_avoidjunk_pundit .com>
wrote in message news:O2****************@TK2MSFTNGP14.phx.gbl...
I'm coding up C# CodeBehind source code for a Logon.aspx file. I have a
newbie few questions:

1) If a PostBack comes in and you return from it (rather than redirect)
then will the original arguments in the URL (e.g. RETURNURL) stay there?
Or does one have to put those arguments back in the URL?

2) Does RETURNURL return the same thing as
FormsAuthentication.RedirectFromLoginPage will take you to?
ReturnURL = Request.QueryString["RETURNURL"];
Response.Redirect(ReturnURL);
versus:
FormsAuthentication.RedirectFromLoginPage(UserName .Text,
Remember.Checked);

Are they equivalent?

Dec 5 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.