The Users.aspx.cs Code Behind Class

For the user management of MyGolfGear.NET, we needed something to tie the data provider class to the user interface. The built-in ASP.NET mechanism for doing this is the code behind class. We created the Users.aspx.cs code behind class for this purpose; it ties the User.aspx page to the MyGolfGearDP and UserDS classes.

The functionality encapsulated by the Users code behind class can be broken down into four main areas. First, it provides a means of retrieving a list of all users in the UserDS DataSet (and the User table). Next, it provides details about the currently selected user and the ability to update or delete that user's information. Last, it provides the ability to add a new user.

The Page_Load method ...

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.