Chapter 11


What You Will Learn in This Chapter:

  • What jQuery is
  • What NuGet is and how to use it
  • How to use jQuery to enhance your pages, including adding rich visual effects and animations
  • How to leverage jQuery to enhance the ASP.NET validation framework Code Downloads for this Chapter

You can find the code downloads for this chapter on the Download Code tab at The code is in the Chapter 11 download.

In previous chapters you were introduced to JavaScript, the de facto language for client-side scripting and interacting with elements in your web pages at the client. Though the examples shown were relatively straightforward, JavaScript can do much more and is quite a powerful programming language. But powerful as it may be, it has a few shortcomings. One of the problems with JavaScript is that not all browsers interpret it the same way. A lot of the JavaScript code you'll write will work in all major browsers, but subtle differences in code and behavior exist that make it difficult to write code that behaves exactly the same in all major browsers. Also, JavaScript lacks some useful features that would come in handy in your day-to-day JavaScript coding. For example, it has built-in methods to find a specific element on a page (using getElementById as you saw in Chapters 9 and 10) and to find all elements of a specific HTML tag (using getElementsByTagName), but it lacks features like getElementsByClassName to get ...

Get Beginning ASP.NET 4.5: in C# and VB now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.