Web Form Architecture

Web Forms divide web applications into two parts:

  • The visual component.

  • The user interface logic.

The user interface for Web Form pages consists of a file containing markup and Web Form-specific elements. This file has an .aspx extension and is referred to as the page. The page works as a container for the text and controls what you want to display.

The user interface logic for the Web Form consists of the code you create to interact with the form. You can choose to have the programming logic reside in the .aspx file or in a separate file (referred to as the “code-behind” file) and written in Visual Basic or C#. When you run the form, the code-behind class file runs and dynamically produces the output for your page.

A Web ...

Get Inside ASP.NET 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.