Wednesday, July 22, 2009

Quick rules for Update Panels

Quick rules I follow with update panels ->

  • write your page without UpdatePanels as if they did not exist.
  • Then narrow down to the section or part of the markup that needs to be updated and only move that into update panels.
  • If you know if elements that have client side handlers hooked up for example the ok/cancel buttons for modal popup those should not be inside update panels because after the postback the handler will be rendered useless.