Page view counter

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

Please install Silverlight or click download to watch video locally.

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.

Presented by Joe Stagner

Duration: 13 minutes, 9 seconds

Date: 01 August 2007

Watch    Video   |   Download    Video   |   VB Code    C# Code

Video downloads: WMV  |  Zune  |  iPod  |  PSP  |  MPEG-4  |  3GP

Audio downloads: AAC  |  WMA  |  MPEG-4  |  MPEG-3  |  MPEG-2

Comments : 5

Leave a Comment

avinash parate : On July 08, 2008 6:54 AM said:

Hi...Everyone....!!

when i click on button i want to get Type and Id of that button object..without refreshing the page..After getting these values i want to pass it to server-side programm..for further process..

For that i used small javascript function which returns the above values...but when i pass it using location.href(lnk); to .aspx page and retrive these values using Request.QueryString["Id"]

It refresh the page..

shall i go for ICallbackEventHandler..or any other help is appreciate....Thank you...!

cv_vikram : On August 07, 2008 11:27 AM said:

Good tutorial...thanks

Karina Northen : On September 02, 2008 10:05 AM said:

Thank you very much:)

eXtension : On February 05, 2009 9:24 AM said:

Nice

ataxia1 : On February 25, 2009 1:57 PM said:

Thanks for a great demo. It demonstrates conditional updates very nicely, however, since you are displaying LastUpdate in your conditional box, even if it were updating, you wouldn't see it the change. Putting a Now() in both boxes would demonstrate that the conditional box isn't updating all the time. ;)

Leave a Comment

You must be logged in to leave a comment. Click here to log in.

Microsoft Communities