4

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.

1
  • not sure but i think it depends on what you want to do actually. i myself created a webservice asmx file which does a few things in my project, and i can call it with the jquery Ajax function. but i have no idea if that is best practice, if there is a better / even more secure way to handle stuff. Commented Jul 30, 2009 at 9:13

4 Answers 4

8

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

Sign up to request clarification or add additional context in comments.

1 Comment

Are these the only ways to use jQuery AJAX calls to ASPX pages? Is there a way to plug into ASP.NET's lifecycle via jQuery?
1

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.

Comments

0

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

Comments

0

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

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.