Is auto post back in ASP.net and AJAX are the same??? I want to send data to server and store that data in XML file without refreshing the page. I dont want to use ajax.. If there is any other way to do this with plain javascript then do let me know… thanks in advance…
Share
Not from a users perspective. When doing a postback, the user will see his entire page getting refreshed. When using AJAX, the user will not see his page get refreshed
If you want to interact with the server without refreshing the page, you have to use AJAX.
Note: You may be confusing AJAX with the various AJAX controls / libraries like AjaxControlToolKit etc. If that is the case, then you can definitely use AJAX without using any of the libraries / controls. That is done by using the
XMLHTTPRequestandXMLHTTPResponseobjects directly via Javascript. However, that in itself is AJAX. Sample code of how to do it can be seen in this pageSo, atleast as far as i know, you need to use AJAX to go to the server without appearing to the user that your page has gotten refreshed.