October 2010
Intermediate to advanced
1920 pages
73h 55m
English
Login ControlBy default, the Login control uses ASP.NET Membership to authenticate a username and password. If you need to change this default behavior, you can handle the Login control’s Authenticate event.
Imagine, for example, that you are building a simple application and you want to store a list of usernames and passwords in the web configuration file. The web configuration file in Listing 26.10 contains the credentials for two users named Bill and Ted.
Listing 26.10. Web.Config

The page in Listing 26.11 contains a Login control that authenticates users against the list of usernames and passwords ...
Read now
Unlock full access