How Web Forms Work

Just as you'll find when working with Windows Forms, ASP.NET Web Forms raise events in a certain order as the page initializes and loads. ASP.NET also raises events in response to user interaction in the browser. When you think about how a standard ASP or HTML page is created and sent to a browser, you assume that everything is processed in a very linear, top-down fashion. However, for a Web Form, nothing could be further from the truth.

Like a Windows Form, a Web Form goes through the standard Load, Draw (Render), and Unload types of events. Throughout this process, different procedures within the page's class module are called. When a page is requested from a client browser, a DLL that encapsulates the tags in the ASPX page ...

Get ASP.NET Developer's JumpStart 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.