How Do I: Update Multiple Regions of a Page with ASP.NET AJAX?

In this video we learn that the ASP.NET AJAX UpdatePanel control provides two properties that you may use to update multiple regions of a Web page in response to a single client-side event. The UpdateMode property may be set to Always, in which case the panel will always update during a post back, or set to Conditional, in which case the panel will only update in response to specific events. The Triggers collection property allows you to specify those events that will cause the panel to update. Used together these properties allow multiple UpdatePanel controls to update in response to the same event trigger.

Presented by Scott Golightly

Duration: 7 minutes, 18 seconds

Date: 29 May 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 : 5

Leave a Comment

MattNolte : On March 31, 2008 11:29 AM said:

Good info, but the video appears to freeze for about 40 seconds at 3:30.

cool_vikky : On May 06, 2008 7:08 AM said:

hi its great and ausamm . i am really inspired by these type of examples.

hansmukh : On May 16, 2008 9:17 AM said:

simply gr8..

shweko : On July 21, 2008 2:41 PM said:

protected void RadioButtonList1_SelectedIndexChanged(...)

  {

       Image2.ImageUrl = "~/Images/" + ((RadioButtonList)sender).SelectedItem.Text + " box.png";

       KeyPoints.Items.Add(((RadioButtonList)sender).SelectedItem. Text);

       KeyPoints.Items.Add("Lorem");

       KeyPoints.Items.Add("Ipsum");

       KeyPoints.Items.Add("Dolor");

       KeyPoints.Items.Add("Sit");

       KeyPoints.Items.Add("Amet");

   }

In your code, updating happens only one after another. I mean - Image in 'UpdatePanel1' is updated first and KeyPoints in 'UpdatePanel2' is updated second.

I want them updated simultaniuosly, how do we do that.

thanks

cv_vikram : On August 07, 2008 9:21 AM said:

Nice tutorial..thanks

Leave a Comment

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

Page view counter
Microsoft Communities