O'Reilly logo

Applied ASP.NET 4 in Context by Adam Freeman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Working with ASP.NET Events

ASP.NET implements a set of events that indicate different stages in the life cycle of a web application. We touched on one such event in the previous chapter, when we added C# statements to the Page_Load method of our code-behind class and relied on the auto event wire-up feature to associate this method with the Page.Load event. In this section, we’ll dig deeper into these events to understand what they represent and how they can be used.

Page Events

The first kind of ASP.NET events we will look at are page events. These events are invoked as the ASP.NET server processes a request for page. You can register a handler for page events in your code-behind class to respond to the different parts of the life cycle.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required