How does Asp.Net Ajax Update Panels work

How does Asp.Net Ajax Update Panels work

UpdatePanels have two ways of updating their contents: Always and Conditional. This can be set through the UpdateMode property of each UpdatePanel. The default value is Always which means that the UpdatePanel will refresh on each and every postback, regardless of what control it originated from.

The Conditional mode is much better. When set, the UpdatePanel refreshes only if one of the following conditions are met:

  • A control inside the UpdatePanel (i.e. a child control) invokes a postback.
  • A registered trigger is invoked (such as a button click outside the UpdatePanel).
  • the Update() method for the UpdatePanel is called (through the server side code).

Leave a Reply

You must be logged in to post a comment.


All material @ copyrighted by chrisranjana.com. If you want to link to this article you are welcome to do so. Unauthorized publication is strictly prohibited. This developer tutorial website contains articles by Php programmers , Software developers, Mysql programmers and asp c# programmers. This website also contains ajax tutorials and advanced mysql sql stored procedures and functions tutorials and sample codes.