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

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: 19 July 2007

Watch the video   |   Download the video   |   Get VB code  or  C# code

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

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

Comments : 3

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:)

Leave a Comment

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

Page view counter
Microsoft Communities