A quick tip for working with UpdatePanels

UpdatePanels are a pretty neat part of Microsoft's Ajax Extensions. It's interesting to note how much faster pages *seem* when you remove all visual aspects of the postback. Sure, the postback is still happening, but without the need to re-render the entire page things seem so much snappier.

However to make sure that your page is running as fast as it possibly can, remember to set the UpdatePanel's UpdateMode to Conditional (which isn't the default).

It might seem like an obvious thing, but when you're working on complex pages that contain multiple UpdatePanels, multiple UpdateProgress controls, as well as UpdatePanelAnimation extenders it can be pretty easy to overlook.


 


Tags: ,

Posted on Thursday, May 31, 2007 10:26 PM | ASP.NET AJAX Web Development

Like this? Share it!

  • # A quick tip for working with UpdatePanels
    Gravatar
    Commented on 6/1/2007 3:12 AM

    Very good reminder. Also, be aware that init, load, and prerender page events execute with each async callback. So you can speed things up more by using the ScriptManager.IsInAsyncPostBack conditional to avoid costly functions that you may not need with an updatepanel refresh.

Post a comment
Please add 5 and 2 and type the answer here:
Remember me?
Ensure the word in this box says 'orange':