1

What do i need to do for putting ajax functionality to my project. What tool kit do i need to download or how can i integrate that . and do i really need to do something for putting update panel for my project?

NoviceToDotNet
  • 10,387
  • 36
  • 112
  • 166
  • no i dont know much of this but some body suggested me to not to flicker the page on post back use ajax so i am asking this to you. what really do i need to do? – NoviceToDotNet Aug 13 '10 at 15:28

3 Answers3

1

One method for AJAX enabling your ASP sites is using the AJAX control toolkit (http://www.asp.net/ajax/ajaxcontroltoolkit/samples/) which provides some AJAX functionality using ASP controls that should be familiar to a novice Dot Net developer. AJAX Control Toolkit is a DLL you add to your solution just like other controls. There is then markup for use in the ASP.NET pages.

For more customized and advanced AJAX features, your best bet is using JQuery (http://jquery.com/) and create *.asmx Web Services. JQuery includes a $.ajax() call that will communicate to ASP.NET Web Services using JSON. This SO page may help - Calling ASMX from jQuery and this Encosia blog entry may help - http://encosia.com/2008/03/27/using-jquery-to-consume-aspnet-json-web-services/. JQuery is a library of JavaScript files that you download, include in your page, and call into using your own JavaScript files.

I would also recommend that you read the wikipedia entry for AJAX (http://en.wikipedia.org/wiki/Ajax_(programming)) and familiarize yourself with the related technologies.

Community
  • 1
  • 1
Spain Train
  • 5,890
  • 2
  • 23
  • 29
0

In my opinion, jQuery has the best AJAX functionality and is easy to learn and use. It's got great documentation and there are lots of tutorials and examples -- I love it.

Doug
  • 5,208
  • 3
  • 29
  • 33
0

I think you need to provide a lot more information before we can give youa definitive answer.

Ajax is simply using Javascript to request a webpage - same as a user clicking on a link - except that JavaScript gets the contents of the page requested instead of showing it to the user.

This allows you to request data within JavaScript without refreshing the page.

As you mentioned UpdatePanel, I'm assuming you're using ASP.Net - In which case, .Net 2.0 didn't include AJAX and you needed to get some additional installs to make it work. 3.5 and later includes it natively.

If you're just starting to get into the whole area, I suggest you do some reading about how AJAX works behind the scenes before trying to use it - Understanding what its doing will save you a LOT of headaches later.

FWIW you don't actually need ANYTHING special to make AJAX work - you can write it yourself entirely in JavaScript (I've done this far too many times). As mentioned in Doug's answer, JQuery is fantastic and is worth using even without the AJAX functionality.

If, however, you want to use UpdatePanels and AJAX, the easiest option is .Net 3.5 or later (Visual Studio 2008 or later)

Basic
  • 26,321
  • 24
  • 115
  • 201
  • so how can i make my project ajax enable do i need to download some dll or kit to integrate it to my project to work ajax on my project? – NoviceToDotNet Aug 13 '10 at 15:40
  • what do i need to do for putting script manager to my project? – NoviceToDotNet Aug 13 '10 at 15:53
  • when i add to my projecct it my aspx page do not recognize this tag what do i need to do – NoviceToDotNet Aug 13 '10 at 15:56
  • Can you let us know what version of visual studio you have and which version of the .Net framework you're using for your project? – Basic Aug 13 '10 at 16:20
  • i am using visual studio 2005 and dot net frame work 2.0 any suggestions now how to integrate ajax to my project to recognize it script manager and update panel..and how to configure it please let me know – NoviceToDotNet Aug 14 '10 at 03:53
  • For .Net 2, you need to install the AJAX extensions : https://www.microsoft.com/downloads/details.aspx?FamilyID=ca9d90fa-e8c9-42e3-aa19-08e2c027f5d6&displaylang=en After that, the controls should work the way you'd expect - just google a tutorial – Basic Aug 14 '10 at 18:33