Click here to Skip to main content
15,897,518 members
Please Sign up or sign in to vote.
2.50/5 (2 votes)
See more:
Hi!

I am a newbie to AJAX. I want to use AJAX without toolkit controls such as UpdatePanel,UpdateProgress, etc.

I have read some articles for using AJAX without the AJAX toolkit. They told to do all the functionalities using JavaScript.

All the examples I have seen were using XmlHttpRequest object for making request to and getting response from server. I understood the working of XmlHttpRequest but I am unable to use it for database level.

Could anyone tell me how to bind the controls of Asp.Net with database using Ajax and JavaScript and how to make their events using JavaScript at client-side and call them from the server side?

I am using .Net framework 3.5 and Sql Server 2005 for doing this.

Thanks for any help!!!
Posted
Updated 2-Mar-11 20:46pm
v2

Hope this[^] might help you.
 
Share this answer
 
Comments
Manfred Rudolf Bihy 3-Mar-11 2:44am    
[Moved on OP's behalf:]
Thanks for your post.
The link you had posted is using JSON.
Could you tell me the same using XML?
Thanks!
Dalek Dave 3-Mar-11 3:49am    
Good link
[no name] 3-Mar-11 3:50am    
Thanks Dalek.
hi you use text mode or xml to transfer data
 
Share this answer
 
Here are some links to get you started. All of the major javascript frameworks eases this task for (it does heavy weight lifting of handling XMLHttpRequest and lets you worry about your functionality. When you use any of these frameworks, you will be able to process the results as XML / JSON.

http://api.jquery.com/jQuery.ajax/[^]

http://sixrevisions.com/javascript/the-power-of-jquery-with-ajax/[^]

http://www.prototypejs.org/api/ajax[^]

http://dojotoolkit.org/reference-guide/quickstart/ajax.html[^]
 
Share this answer
 
you said: I am a newbie to AJAX. I want to use AJAX without toolkit controls such as UpdatePanel,UpdateProgress, etc.

A very common misconception is the difference between idea (knowledge) and tool-set. This is a classic case. You want to use AJAX but don't want the AJAX toolkit. AJAX is an idea, concept, method, way of solving a problem where are the AJAX toolkit is Microsoft's implementation.

You need to start by learning what is AJAX, in fact you can use AJAX with out the AJAX toolkit and there are other toolkits as well out there. Once you get the concept in your head you decide how you want to use it. May be in your case you don't need any toolset, or may be you want to reuse one out there already.

While you are out there, I would encourage you to look at jQuery [^]as well.

By the way here few resources for AJAX
http://en.wikipedia.org/wiki/Ajax_(programming)[^]
http://www.w3schools.com/Ajax/Default.Asp[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900