I'm trying to setup my login form so that instead of going to login.aspx it reloads the current page with a get variable. My current code in my web.config is:
<authentication mode="Forms">
<forms loginUrl="?action=login" />
</authentication>
However, it needs to be something like:
<authentication mode="Forms">
<forms loginUrl="~pathtocurrentpage~?action=login" />
</authentication>
How can I get the loginURL to redirect to the current page?
Just for your own curiosity, this is the reason I want to do this:
At the top of my webpage I have a tab that says login. When the user clicks the login button I want the tab to come down and display the login menu regardless of what page the user is on.
Thanks for your help.
<authentication mode="Forms">
<forms loginUrl="?action=login" />
</authentication>
However, it needs to be something like:
<authentication mode="Forms">
<forms loginUrl="~pathtocurrentpage~?action=login" />
</authentication>
How can I get the loginURL to redirect to the current page?
Just for your own curiosity, this is the reason I want to do this:
At the top of my webpage I have a tab that says login. When the user clicks the login button I want the tab to come down and display the login menu regardless of what page the user is on.
Thanks for your help.