Last post Dec 07, 2014 11:35 PM by chetan.sarode
Dec 05, 2014 08:48 AM|Philosophaie|LINK
What are the positive characteristics and differences between jQuery Ajax and the UpdatePanel in aspx?
jQuery Ajax, if using JSON, you have to convert the TextBoxes, etc to a JSON object where UpdatePanel you do not.
Are there any ways jQuery Ajax is better than UpdatePanel?
Please give examples!!
Dec 05, 2014 09:08 AM|AidyF|LINK
jQuery ajax is lighter weight and generally quicker, as an updatepanel forces a full postback cycle even if only a small amount of the resulting page is returned to the client. So it is less efficient, but much easier to develop and your code still works
with js disabled.
Dec 07, 2014 10:25 PM|Kevin Shen - MSFT|LINK
Update Panel belongs to server controls ,When you it ,you need to add ScriptManager.and it provide you full post back.it will load view state information it is less efficient
While Jquery Ajax belongs to the client side library,it can simply to fire a ajax request to the server side and without a full post back.
You can refer to the links below about their difference:
Dec 07, 2014 11:35 PM|chetan.sarode|LINK
Update Panel is very easy to use; you really don't have to write any significant code to achieve AJAX, works seamlessly with server controls model. This is achieved by issuing asynchronous post request - so all form elements get posted including view-state.
On server side, entire control tree gets loaded and page follows normal life cycle till rendering at which only html from update panel is sent (along with view-state) to client side. So you have large request size, more server load and large response size.
Alternative is to make async server calls, where request would carry only data that is needed for server call. The server would respond with the data needed. Typically, one would use JSON to transfer data to/from server, reducing request and response size.
On server side, typically, a script service or page method is used which will do the specific task (as opposed to following a page life cycle) reducing server load.