Page Model

There are several characteristics that distinguish an ASP.NET application from an ASP application:

  • In ASP.NET, there is a user interface/markup page and a code-behind page for every Web page.
  • The layout and appearance of the page is separated from the code. Code is contained in codebehind pages, typically with an extension of .aspx.vb, or in .NET components that implement certain functionality and business logic, but not the user interface.
  • Components are compiled into assemblies.

Cascading style sheets (CSS) are used to manage the look and feel of each user interface element. Most user interface elements are implemented using controls. They can be either user controls or custom Web controls. For more information about the controls used on the International Retail Site, see Controls Infrastructure.

This is a modular design that enables plug-and-play features, making it easy to customize, extend, localize, and globalize your site. All user interface text is retrieved using the ASP.NET Resource Manager. The site uses the.NET CultureInfo class to display locale specific data. For more information about the .NET CultureInfo class, see https://msdn.microsoft.com/library/.

Some of the advantages of control-based user interface development are:

  • You can change the behavior of a control by getting or setting control properties.
  • You can write new controls that inherit from existing controls.
  • It is easy to upgrade and maintain your site. You do not need to shut down the site to replace a control.

It is easy to customize a site without code changes:

  • CSS style sheets can be easily replaced without code changes.
  • User interface pages and images can be replaced without code change or recompilation.
  • Properties for custom Web controls or user controls can be set to change their appearances.

Copyright © 2005 Microsoft Corporation.
All rights reserved.