Chapter 7. The ASP.NET Event Model
Everything in ASP.NET happens because some trigger caused it to happen. In many scripting languages, a script is executed only because a request was made for that script. ASP.NET goes well beyond the simple HTTP request to make things happen. This rich event model comes from a long tradition of visual desktop application development.Events are what the name implies, occurrences or actions. Events have to occur in order for us to know it's time to do something. When your toast pops up out of the toaster, you know it's time to butter the toast and eat it. When the "feed me" light comes on in your car, you know it's time to get gas. When your credit card statement comes in the mail and the balance isn't zero, you know it's time to pay it. Our Web applications have all kinds of events to let us know it's time to fire off some code!