Forms Authentication - Pass String to Login Form

  • Thread starter Thread starter David Krussow
  • Start date Start date
D

David Krussow

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.
 
the login page will be passed a returnURL.
you can read that and make up a sort of message.
 
Thanks for the clarification... it's Area51.aspx, and not Area57.aspx --
without, of course, acknowledging or denying the existance of Area51.aspx.

: )
 

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

Back
Top