xmlhttprequest instead of updatepanel

Posted by Klbaiju under ASP.NET AJAX on 3/10/2010 | Views : 4084 | Status : [Member] | Replies : 3
Hi,
i want to use ajax on my page.is it possible use ajax on any page using xmlhttprequest object with out using update panel and scriptmanager.

Regards
K L BAIJU




Responses

Posted by: Virendradugar on: 3/10/2010 [Member] [MVP] Silver

Up
0
Down
Hi,

Yes, you can use xmlHttpRequest object without update panel.

Take a look at below link, which will help you.

http://www.w3schools.com/ajax/ajax_browsers.asp

Thanks,
Virendra Dugar

Klbaiju, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Abhi2434 on: 3/10/2010 [Member] [Microsoft_MVP] [MVP] Silver

Up
0
Down
The most easiest and lightweight way to implement xmlhttprequest other than ScriptManager is using

ICallbackEventHandler.

If you use it, you dont have to implement the Requests, and also you dont need to use custom handler/page to post each request, rather you can go to the same page.

Anyway, if you are in a learning phaze, you can build a javascript class to expose XmlHttprequest. Use w3school link as given by Virendradugar.

Cheers

www.abhisheksur.com

Klbaiju, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Klbaiju on: 3/11/2010 [Member] Starter

Up
0
Down
I already read that article.i have a page cotain some controls how to do it by xmlhttprequest object.
eg
i have 3 textboxes. i want to add 3 datas to database.how it is possible using xmlhttprequest object

Regards
K L BAIJU

Klbaiju, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response