Language

[How Do I:] Use the Conditional UpdateMode of the UpdatePanel?

By Joe Stagner|13 minutes|
The ASP.NET AJAX UpdatePanel includes an UpdateMode property that may be set to 'Always' or 'Conditional'. The default is Always, in which case the UpdatePanel will always update its content during an asychronous postback. In this video we learn how we can set the UpdateMode to Conditional, in which case the UpdatePanel will only update its content when our server-side code calls its Update method. This allows you to use conditional logic in your C# or Visual Basic code to determine whether the UpdatePanel will update its content during the current asynchronous postback.

DOWNLOADS: Code (C#)|Code (VB)|MP3|MP4|WMV

This article was originally created on August 1, 2007

Author Information

Joe Stagner

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