4.2. Design

This section explains how to create the style sheet mentioned earlier, master pages, controls, and classes. The solution section walks through an example demonstrating how to use these features to create both the page that displays the list of users defined in the system and the page that enables users to add or update existing users. The following table describes all the master pages, controls, style sheets, and classes that will be built in this chapter.

PaidTimeOffUI: PaidTimeOff.cssThis style sheet contains the company brand colors and is used by all other pages to consistently display the correct fonts and colors across all pages.
PaidTimeOffUI: PaidTimeOff.masterThis is the main master page that contains the layout shown in Figure 4-1. All pages should use this master page or a master page that is nested in this master page.
PaidTimeOffUI: PaidTimeOffEditGrid.masterThis is a nested master page that is used for all pages that display lists of records to the user in a GridView.
PaidTimeOffUI: PaidTimeOffEditPage.masterThis nested master page is used for all pages to enable users to edit a record. A Save and Cancel button are placed on this page so every page is consistent.
PaidTimeOffUI: App_Code\BasePageThis class is the base for all pages in the application and contains common logic for encrypting and decrypting query strings, setting menus, etc. This class is built in this chapter and extended in future chapters.
PaidTimeOffUI: App_Code\BaseEditPage ...

Get ASP.NET 3.5 Enterprise Application Development with Visual Studio® 2008: Problem - Design - Solution 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.