Using the Login Page for Authentication
After we established the data model and created a data provider to communicate with the database, we needed a way to interact with the user. The user interface elements for this example are split into the usual .aspx page and an associated code behind class.
The Login.aspx.cs Code Behind Class
The Login.aspx.cs code behind class is responsible for using both the customer LoginInformation class as well as the built-in ASP.NET forms-based authentication classes. The real job of the Login.aspx.cs code behind class is to tie the two pieces of functionality together.
Two methods are all that we need in the Login.aspx.cs code behind class to tie the information provided in the standard form to the LoginInformation ...
Get Building e-Commerce Sites with the .NET Framework now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.