Login Page Location

I’m pretty new to ASP.net and am trying to teach myself, so I appreciate any help you can offer.

My question: I am currently using the LoginStatus Control to display the Login/Logout button. I want to change the location of the login page. Currently the login page is on login.aspx (default) but I want to have it so that when the login is pressed it re-loads the current page but attaches GET variables such as ?action=login to the URL.

Reading through the .net documentation I found this:

LoginStatus control provides a link to the login page defined in the application configuration settings

I’m not sure which configuration setting this refers to. Where exactly can I edit this value?

Thanks.

Usually the login page location is set in the web.config. I have never seen it done like that before. Usually just a login page. Is there a reason you wana do it like this and not with a dedicated login page?

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. I just figured out how to set the login path. I just need to figure out how to get it to add the get variable to end of the current url.

This doesn’t quite work:

      <authentication mode="Forms">
        <forms loginUrl="?action=login" />
      </authentication>