In the Microsoft .NET Framework, all ASPX files have an associated class that must be derived from the Page class. The ASPX pages are compiled at run-time and cached in server memory by .NET Framework. The class derived from the Page class serves as container for all server controls on a page. All of the code-behind for a page is contained in the derived class.
Iron Speed Designer creates a sub-class of the .NET Framework Page class and uses it as the class from which all pages are derived.
All Page classes in your application derive from the BasePage class. |
The BasePage extends the default Page class of the Microsoft .NET Framework classes. All ASPX files created by Iron Speed Designer are derived from the BasePage class.
In general, the BasePage class provides the following functionality to all of the pages in the application:
Security support: Page and security settings common to all pages such as determining if login is required and whether the user must have a certain role (e.g., Administrator) to view the page. This class supports HTTPS, redirection to other pages, enforcement of access control, and sign out.
ViewState and Session support: Common functions to save and restore information from viewstate and session are provided in this class.