I did some investigation and found that loginurl can be configured in
web.config, like
<system.web>
<authentication mode="forms">
<forms loginUrl="AnotherLogin.aspx"></forms>
</authentication>
</system.web>
However, without this configuration, the loginurl is Login.aspx. I
even tried to rename Login.aspx to ABCLogin.aspx, then loginurl is
ABCLogin.aspx. But, I cannot find any default config in the project's
folder. Or, just guessing, VS2005 make the first created login page as
default?
On Apr 21, 12:47 pm, Morgan Cheng <morgan.chen...@gmail.comwrote:
In VS2005, I create a ASP.NET website project.One page named
Default.aspx with LoginView and LoginStatus controls; and one page
named Login.aspx with Login control in it. After setup of users, I
press Ctrl+F5, IE window is popped up, redirect to Login.aspx page ask
me to input username and password. This works fine.
I am wondering, how does ASP.NET know to redirect to Login.aspx from
Default.aspx? I renamed Login.aspx to something else, and it still
works fine.
I add another page named AnotherLogin.aspx with Login Control too.
But, Default.aspx doesn't redirect to AnotherLogin.aspx, but to
original Login.aspx. What's the connection between Default.aspx and
Login.aspx? How to configure it?
Thanks