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. | |
Share this Question
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.
| |
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.
| |
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. > >
| |
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. > >
| | This discussion thread is closed Replies have been disabled for this discussion. | | Question stats - viewed: 1934
- replies: 4
- date asked: Nov 18 '05
|