Friday, July 3, 2009

An Introduction to JQuery with ASP.NET

In this article, I am going to show how to get started with JQuery using Visual Studio 2008. The article also shows you how to use Visual Studio 2008 intellisense feature to develop jQuery and ASP.NET applications.

What is jQuery?

jQuery is a fast, lightweight JavaScript library that is CSS3 compliant and supports many browsers. The jQuery framework is extensible and very nicely handles DOM manipulations, CSS, AJAX, Events and Animations.

What is the difference between JavaScript and jQuery?

JavaScript is a language whereas jQuery is a library written using JavaScript.

I am presenting an example which will show the use of jQuery with ASP.NET application.

First of all download the jQuery library from Cleck Here

And intellisense documentation Click Here

Make a folder with the name Scripts inside in your application. Right click the Scripts folder > Add Existing Item > Browse to the path where you downloaded the jQuery library (jquery-1.3.2.js) and the intellisense documentation (jquery-1.3.2-vsdoc2.js) > Select the files and click Add. The structure will look similar to the following:


Image 1.

In this example I am going to Display an alert on asp:Button click using jQuery

Now do the code in Default.aspx

See full detail:

No comments: