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

Forms Authentication - Pass String to Login Form

P: n/a
Just wondering if/how it would be possible to display a variable string on
the login form - where the string varies depending on the form the user
attempted to access.

To clarify, an unauthenticated user is browsing the site, and tries to open
the UltraSecretContent.aspx page. Forms authentication automatically
redirects the user to login.aspx. I would like for login.aspx to display a
message that reads, "You must log in before viewing Ultra Secret Content".
And if the user is attempting to access Area57.aspx, the message appearing
on login.aspx would read, "You must log in before viewing Area 57", and so
on (a different message depending on which form the user is attempting to
view) How can this be done?

Thanks.
Nov 18 '05 #1
Share this Question
Share on Google+
4 Replies


P: n/a
the login page will be passed a returnURL.
you can read that and make up a sort of message.

--
Regards,
HD
Once a Geek.... Always a Geek
"David Krussow" <sc******@schmuks-r-us.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Just wondering if/how it would be possible to display a variable string on
the login form - where the string varies depending on the form the user
attempted to access.

To clarify, an unauthenticated user is browsing the site, and tries to
open
the UltraSecretContent.aspx page. Forms authentication automatically
redirects the user to login.aspx. I would like for login.aspx to display a
message that reads, "You must log in before viewing Ultra Secret Content".
And if the user is attempting to access Area57.aspx, the message appearing
on login.aspx would read, "You must log in before viewing Area 57", and so
on (a different message depending on which form the user is attempting to
view) How can this be done?

Thanks.

Nov 18 '05 #2

P: n/a
e.g. when user access UltraSecretContent.aspx the login page will be
redirected with URL like
http://localhost/login.aspx?ReturnUR...etContent.aspx

Tiendq,
ti**@tienonsoftware.com

"Hermit Dave" <he************@CAPS.AND.DOTS.hotmail.com> wrote in message
news:#3**************@TK2MSFTNGP09.phx.gbl...
the login page will be passed a returnURL.
you can read that and make up a sort of message.

--
Regards,
HD
Once a Geek.... Always a Geek
"David Krussow" <sc******@schmuks-r-us.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
Just wondering if/how it would be possible to display a variable string on the login form - where the string varies depending on the form the user
attempted to access.

To clarify, an unauthenticated user is browsing the site, and tries to
open
the UltraSecretContent.aspx page. Forms authentication automatically
redirects the user to login.aspx. I would like for login.aspx to display a message that reads, "You must log in before viewing Ultra Secret Content". And if the user is attempting to access Area57.aspx, the message appearing on login.aspx would read, "You must log in before viewing Area 57", and so on (a different message depending on which form the user is attempting to view) How can this be done?

Thanks.


Nov 18 '05 #3

P: n/a
if they belong in the same folder otherwise something like this
http://localhost/login.aspx?returnUR...es/Area51.aspx

so that after login it can successfully redirect to the same the user
requested if successful

--
Regards,
HD
Once a Geek.... Always a Geek
"Do Quyet Tien" <dq****@cmc.com.vn> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
e.g. when user access UltraSecretContent.aspx the login page will be
redirected with URL like
http://localhost/login.aspx?ReturnUR...etContent.aspx

Tiendq,
ti**@tienonsoftware.com

"Hermit Dave" <he************@CAPS.AND.DOTS.hotmail.com> wrote in message
news:#3**************@TK2MSFTNGP09.phx.gbl...
the login page will be passed a returnURL.
you can read that and make up a sort of message.

--
Regards,
HD
Once a Geek.... Always a Geek
"David Krussow" <sc******@schmuks-r-us.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
> Just wondering if/how it would be possible to display a variable string on > the login form - where the string varies depending on the form the user
> attempted to access.
>
> To clarify, an unauthenticated user is browsing the site, and tries to
> open
> the UltraSecretContent.aspx page. Forms authentication automatically
> redirects the user to login.aspx. I would like for login.aspx to
> display a > message that reads, "You must log in before viewing Ultra Secret Content". > And if the user is attempting to access Area57.aspx, the message appearing > on login.aspx would read, "You must log in before viewing Area 57", and so > on (a different message depending on which form the user is attempting to > view) How can this be done?
>
> Thanks.
>
>



Nov 18 '05 #4

P: n/a
Thanks for the clarification... it's Area51.aspx, and not Area57.aspx --
without, of course, acknowledging or denying the existance of Area51.aspx.

: )

"Hermit Dave" <he************@CAPS.AND.DOTS.hotmail.com> wrote in message
news:%2******************@TK2MSFTNGP11.phx.gbl...
if they belong in the same folder otherwise something like this
http://localhost/login.aspx?returnUR...es/Area51.aspx

so that after login it can successfully redirect to the same the user
requested if successful

--
Regards,
HD
Once a Geek.... Always a Geek
"Do Quyet Tien" <dq****@cmc.com.vn> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
e.g. when user access UltraSecretContent.aspx the login page will be
redirected with URL like
http://localhost/login.aspx?ReturnUR...etContent.aspx

Tiendq,
ti**@tienonsoftware.com

"Hermit Dave" <he************@CAPS.AND.DOTS.hotmail.com> wrote in message news:#3**************@TK2MSFTNGP09.phx.gbl...
the login page will be passed a returnURL.
you can read that and make up a sort of message.

--
Regards,
HD
Once a Geek.... Always a Geek
"David Krussow" <sc******@schmuks-r-us.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
> Just wondering if/how it would be possible to display a variable string
on
> the login form - where the string varies depending on the form the
user > attempted to access.
>
> To clarify, an unauthenticated user is browsing the site, and tries to > open
> the UltraSecretContent.aspx page. Forms authentication automatically
> redirects the user to login.aspx. I would like for login.aspx to
> display

a
> message that reads, "You must log in before viewing Ultra Secret

Content".
> And if the user is attempting to access Area57.aspx, the message

appearing
> on login.aspx would read, "You must log in before viewing Area 57",

and so
> on (a different message depending on which form the user is
attempting to
> view) How can this be done?
>
> Thanks.
>
>



Nov 18 '05 #5

This discussion thread is closed

Replies have been disabled for this discussion.