Language

[How Do I:] Choose Between Methods of AJAX Page Updates?

By |11 minutes|

In this video Joe Stagner compares the two primary methods of performing AJAX-style page updates in an ASP.NET application. The first method is to use an UpdatePanel, where no additional code needs to be written on either the client side or the server side. The benefit of using the UpdatePanel is that everything works automatically. The penalty is that at the client it requires a lot of data to be included in the AJAX request and response, and at the server it requires a full page lifecycle to be executed. The second method is to use network callbacks, where additional code needs to be written on both the client side and the server side. The benefit of using network callbacks is that at the client it requires very little data to be included in the AJAX request and response, and at the server it requires only the called service method to be executed. The penality is the time and effort it takes to write the necessary code. Joe concludes the video by discussing what you should consider when choosing between the two primary methods of AJAX-style page updates. (This video uses the code from the How Do I Get Started with ASP.NET AJAX video and the How Do I Make Client-Side Network Callbacks with ASP.NET AJAX video.)

DOWNLOADS: MP3|MP4|WMV

Joe Stagner

By Joe Stagner, Joe has spent 10 years providing guidance to developers building web applications.

This is a Multi-Part Article

Now viewing article 18 of 43

  1. Get Started with ASP.NET AJAX
  2. Implement Dynamic Partial-Page Updates with ASP.NET AJAX
  3. Make Client-Side Network Callbacks with ASP.NET AJAX
  4. Add ASP.NET AJAX Features to an Existing Web Application
  5. ASP.NET AJAX Enable an Existing Web Service
  6. ASP.NET AJAX Client Library Controls
  7. Use an ASP.NET AJAX ScriptManagerProxy
  8. ASP.NET AJAX RoundedCorners Extender
  9. ASP.NET AJAX Timer Control
  10. Implement the Predictive Fetch Pattern for AJAX
  11. Implement the AJAX Paging Pattern
  12. Implement the AJAX Incremental Page Display Pattern
  13. Implement the Incremental Page Display Pattern using HTTP GET and POST
  14. ASP.NET AJAX UpdateProgress Control
  15. ASP.NET AJAX History Control
  16. Implement the AJAX After Processing Pattern
  17. Update Multiple Regions of a Page with ASP.NET AJAX
  18. Choose Between Methods of AJAX Page Updates
  19. Use Other JavaScript User Interface Libraries with ASP.NET AJAX
  20. Use the ASP.NET AJAX Profile Services
  21. Debug ASP.NET AJAX Applications Using Visual Studio 2005
  22. Build a Custom ASP.NET AJAX Server Control
  23. Use JavaScript to Refresh an ASP.NET AJAX UpdatePanel
  24. Determine Whether an Asynchronous Postback has Occurred
  25. Use the Conditional UpdateMode of the UpdatePanel
  26. Implement the Persistent Communications Pattern with the UpdatePanel
  27. Localize an ASP.NET AJAX Application
  28. Implement the Persistent Communications Pattern using Web Services
  29. Trigger an UpdatePanel Refresh from a DropDownList Control
  30. Create an ASP.NET AJAX Extender from Scratch
  31. Build Custom Server Controls that Work With or Without ASP.NET AJAX
  32. Associate AJAX Client Behavior with an ASP.NET Server Control
  33. Retrieve Values From Server Side AJAX Controls
  34. Two Simple Techniques for Triggering Updates to Update Panels
  35. Use ASP.NET AJAX Cascading Drop Down Control to Access a Database
  36. Implement Infinite Data Patterns in AJAX
  37. Basic ASP.NET Authentication in an AJAX Enabled Application
  38. Dynamically Change CSS ASP.NET AJAX UpdatePanel
  39. Dynamically Add Controls to a Web Page
  40. Set Up Your Development Environment for ASP.NET 3.5
  41. Set Up Your Development Environment for ASP.NET 2.0
  42. Customize Error Handling for the ASP.NET AJAX UpdatePanel
  43. Use ASP.NET AJAX Client Templates