Web Forms

A Web Form consists of two parts:

  • The visual content or presentation, typically specified by HTML elements

  • Code that contains the logic for interacting with the visual elements.

A Web Form is physically expressed by a file with the extension .aspx. Any HTML page could be renamed to have this extension and could be accessed using the new extension with identical results to the original. Thus Web Forms are upwardly compatible with HTML pages. Unlike ASP pages, our ASPX pages won't be interpreted. Instead, they are compiled into .NET classes and executed by the CLR, providing better performance of Web applications.

The way code can be separated from the form is what makes a Web Form special. This code can be either in a separate file (having ...

Get Programming PERL in the .NET Environment 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.