Learning Resources
Creating the Login page
To create a login page
- Create an ASP.NET Web application that uses ASP.NET membership. For details and examples, see Configuring an ASP.NET Application to Use Membership.
- Create an ASP.NET Web page in your application named Login.aspx.
- Add a Login control to the page.
- Optionally set the control's DestinationPageUrl property to the name of the page that the user will be redirected to after logging in. If you do not specify a value for the DestinationPageUrl property, the user will be redirected to the originally requested URL after being authenticated.
The following example shows the markup for a Login control:
runat="server"
DestinationPageUrl="~/MembersHome.aspx">