views:

26

answers:

1

In my application i need to update a panels content after the button click which do some server side processing. I don't want to do full page postback. I can achieve this in two ways : By doing a AJAX call or by using a update panel. But I am confused to choose one. Which is a better option in this case? Thanks in advance.

+4  A: 

Doing your own AJAX will be more efficient but the Update Panel will be easier to implement. An Update Panel postback is almost as large as a full one - if you do everything yourself with something like jQuery you have much more control over what gets sent.

I recommend reading this: http://encosia.com/2007/07/11/why-aspnet-ajax-updatepanels-are-dangerous/

Radu
+1 to doing an AJAX call v/s using UpdatePanels
InSane
Thank you Radu.. After follow the article I am going for the AJAX call. It works excellent..
Amit