7.6. Understanding the Page Event Life Cycle

Events are raised on the client side as the user interacts with the form. The event information is captured and either immediately transmitted to the Web server through an HTTP post or cached until a post is triggered. The actual event handling is carried out on the server. When done, the modified page is then rendered into HTML and streamed back to the client for display.

Because event handling requires a round-trip, events that occur frequently and that can be raised without the user even being aware, such as a mouse-over, are not supported. In fact, by default only click events cause the page to be posted back to the server. Change events, such as the filling in of a text box or the selection of ...

Get C# Primer: A Practical Approach 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.