what is better Doing AJAX call or use UpdatePanel for updating a panel?
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. 开发者_Go百科Which is a better option in this case? Thanks in advance.
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/
精彩评论