M
Morgan Cheng
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
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