Updated: July 12, 2020 (December 17, 2001)

  Charts & Illustrations

Code Behind

Michael Cherry by
Michael Cherry

Michael analyzed and wrote about Microsoft's operating systems, including the Windows client OS, as well as compliance and governance. Michael... more

A Web Form is an ASP.NET page with controls. Web Forms break user interface (UI) programming into business logic and content presentation in much the same way that Visual Basic separates the form of a VB-based Windows application from the code that interacts with it. The presentation file, or Web Forms page, is a container for a mixture of static HTML and ASP.NET server controls. The logic or programming code that interacts with the events generated by the Web Forms page is referred to as the “code-behind” page. The extension .aspx.vb or .apsx.cs indicates whether the page contains Visual Basic.NET or C# code. These code-behind pages are compiled into Dynamic Link Libraries (DLLs), a technique that contributes to the improved performance of ASP.NET.

When a user requests the page, ASP.NET displays the Web Form. When a user selects a control (for example, by clicking on the Submit button), the page is posted back to ASP.NET with information about which control was activated, and ASP.NET executes the associated event-handler from the code.

Atlas Members have full access

Get access to this and thousands of other unbiased analyses, roadmaps, decision kits, infographics, reference guides, and more, all included with membership. Comprehensive access to the most in-depth and unbiased expertise for Microsoft enterprise decision-making is waiting.

Membership Options

Already have an account? Login Now