Event Handling In Asp.Net
Definition of Event Handling : Events in ASP.NET raised at the client machine, and handled at the server machine. For example, a user clicks a button displayed in the browser. A Click event is raised. The browser handles this client-side event by posting it to the server. The server has a subroutine describing what to do when the event is raised; it is called the event-handler. Therefore, when the event message is transmitted to the server, it checks whether the Click event has an associated event handler. If it has, the event handler is executed. Event Arguments: ASP.NET event handlers generally take two parameters and return void. The first parameter represents the object raising the event and the second parameter is event argument. Application and session states: Application state in ASP.NET is data storage available for all the classes in the application. The state has fast access over the information stored in the database. The state is applicable for all the...