Personalization Using Visual Basic 2005 - Create a Login Page
(Page 5 of 6 )
You are now ready to create the Login page for users to log in to the system (after having created an account). Add a new page named Login.aspx. Change to Design view, and drag a Login control onto the page. To make your page look more professional, click on theAutoFormatlink from the smart tag, as shown in Figure 12-14.

Figure 12-14. Formatting the Login control
Pick one of the predefined formats for the control, as shown in Figure 12-15.

Figure 12-15. Pick a Format for the Login control
Make sure that the Welcome page is the Start page and run the application. The Welcome page will display its “Not Logged In” message. Click the link to go to the login page.
Enter a false name and/or incorrect password. TheLogincontrol will display an error message explaining your mistake; as shown in Figure 12-16.

Figure 12-16. Incorrect Logins are caught
Enter the correct name and password and you are brought back to the Welcome page. Your status is noted as logged in, you are greeted by name, and you are offered the opportunity to log out, as shown in Figure 12-17.

Figure 12-17. Logged In view
Next: Adding a Password Reminder >>
More Visual Basic.NET Articles
More By O'Reilly Media
|
This article is excerpted from chapter 12 of the book Programming Visual Basic 2005, written by Jesse Liberty (O'Reilly, 2005; ISBN: 0596009496). Check it out today at your favorite bookstore. Buy this book now.
|
|