CHAPTER 4

image

Event Handling

One of the most common uses of jQuery in web applications is event handling. As an ASP.NET developer, you are already familiar with the concepts of events and event handling. Events raised by ASP.NET server controls, however, are server-side events. They are raised on the server after postback takes place. Events that you handle using jQuery are client-side events. JavaScript (and hence jQuery) offers a much richer set of events to developers than ASP.NET offers on the server side. These events are raised in the client browser and are also handled in the client browser. Events such as clicking a button, changing a selection ...

Get Beginning jQuery 2 for ASP.NET Developers: Using jQuery 2 with ASP.NET Web Forms and ASP.NET MVC 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.