LiamGu
LiamGu

Reputation: 5348

Using jQuery in ASP.NET

When using the AJAX functionality in jQuery, do I also have to have ASP.NET AJAX/.NET 3.5 installed also? or can I only use ASP.NET AJAX?

I'm unclear on whether or not I'm able to use AJAX in ASP.NET without ASP.NET AJAX or not.

Upvotes: 4

Views: 341

Answers (4)

Eriawan Kusumawardhono
Eriawan Kusumawardhono

Reputation: 4896

Let me first clarify the use of jQuery. jQuery is simply a javascript library, and it has nothing to to with ASP.NET or any other server side platform such as PHP or JSP.

So you can simply use jQuery side by side with ASP.NET, or even combine jQuery with ASP.NET 3.5 that has AJAX built in.

You can also use jQuery's AJAX if you like, and it still can run in ASP.NET. If you want to combine both, please test your aspx page first if you also want to use ASP.NET's UpdatePanel with jQuery's AJAX, since it can bring incompatibilities between them.

Upvotes: 1

Tom
Tom

Reputation: 845

ASP.NET Ajax is not needed in order to use jQuery, but the two work well together, hence the support from Microsoft.

Upvotes: 0

Kieran Senior
Kieran Senior

Reputation: 18220

No, if you're using jQuery you don't need ASP.NET AJAX installed.

Upvotes: 0

Russ Cam
Russ Cam

Reputation: 125488

No, you don't need ASP.NET AJAX installed to use the AJAX functionality of jQuery.

You can call PageMethods and Web Services without needing a ScriptManager control (which generates the JavaScript proxy objects that allow you to use familiar syntax to call web services and page methods).

Article on using jQuery to directly call ASP.NET AJAX page methods

Article on using jQuery to Consume ASP.NET JSON Web Services

Upvotes: 8

Related Questions