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. 4 2303
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.
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.
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. > >
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 thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Kris van der Mast |
last post by:
Hi,
I've created a little site for my sports club. In the root folder there are
pages that are viewable by every anonymous user but at a certain subfolder
my administration pages should be...
|
by: Rob |
last post by:
I have an ASP.NET application that uses forms-based
authentication. A user wishes to be able to run multiple
sessions of this application simultaneously from the
user's client machine.
The...
|
by: Martin |
last post by:
Dear fellow ASP.NET programmer,
I stared using forms authentication and temporarily used a <credentials> tag
in web.config. After I got it working I realized this wasn't really
practical. I...
|
by: Anonieko Ramos |
last post by:
ASP.NET Forms Authentication Best Practices
Dr. Dobb's Journal February 2004
Protecting user information is critical
By Douglas Reilly
Douglas is the author of Designing Microsoft ASP.NET...
|
by: nicholas |
last post by:
I'm using role based forms authetication with user-info in a database.
I used this with a SQL database (sql 2000 server) and it worked 100%.
Now, I want to use the same code, but with a database...
|
by: Manny Chohan |
last post by:
I am using forms authetication in the web config. i can validate a user
against a database and click on images which makes hidden panels
visible.However when i click on the link inside a panel...
|
by: The Eeediot |
last post by:
Hello, ASP.NET gurus!
I have read many pages on setting up a login screen to access a number of web pages using Forms Authentication and I am still trying to wrap my brain around the whole thing. ...
|
by: djhexx |
last post by:
Hi. We have an asp.net intranet application written in VB that uses
forms authentication for all it's pages. I have a C# asp.net
application that I just wrote. The company would like the C#...
|
by: =?Utf-8?B?SGFyZHkgV2FuZw==?= |
last post by:
Hi all,
I am running ASP.NET 2.0, after login I need to pass CustomerID in my
database instead of username to other pages. I added following code to my
login.aspx
protected void...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
by: af34tf |
last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
|
by: Faith0G |
last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
| |