HomeLearnGeneral ASP.NET VideosHow Do I: Synchronize Data in Secondary User Control(s) Based Upon User Selections  

[How Do I]: Synchronize Data in Secondary User Control(s) Based Upon User Selections

Please install Silverlight or click download to watch video locally.

In this video Chris Pels shows how to create two DropDownList controls where selecting an item in the first list populates the items in the second list. First, an ASP.NET page is created with two DropDownList controls, one for customer and the other for states in which the customer does business. The customer list is then populated in the code behind. Next, in the SelectedIndexChanged event of the customer list the items in the state list are populated based upon the selection. Finally, there is a discussion of how this approach can be applied to other types of controls and data.

Presented by Chris Pels

Duration: 22 minutes, 53 seconds

Date: 06 March 2009

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

Leave a Comment

Zubair Alam : On March 07, 2009 6:47 AM said:

Thank You Chris :)

I really like you videos

i have one question, can we create a dropdown with n numbers of child dropdown dynamically

let me explain

i have a category table Category with columns Id, CatId, Name,Description, MCatid

Now i want by default the drowndown contain the MasterCategory Information, when i select it, the related ChildCategory will appear in next dropdown & when i select the ChildDropdown, a new dropdown will create dynamically and it contain the related ChildCateogry and go on until the Category does not have the ChildCategory, is it possible

i hope you understand my problem, if yes please can you create a video on it

Thanks & Regards,

Zubair Alam

(http://WebDeveloperBoyz.webs.com)

yassir.2 : On March 07, 2009 12:58 PM said:

good tut but if you are going to use ajax i prefer the to use the cascadingdropdown control extender from the asp.net ajax toolkit

vn_mca : On March 09, 2009 6:41 AM said:

Hi,

I am using Dropdown List in my web application. I need to show Tool Tip for each List Item in Dropdown List.

I am adding the ‘title’ attribute to list item. This is working fine in IE 7.0 but its not working in IE6.0.

To solve this problem I searched the internet, but no appropriate solution was found.

How can I show Tool Tip for each list item in IE6.0? Can you give any suggestion or alternative solution to achieve this one?

barrydorman : On March 09, 2009 2:50 PM said:

Just a couple of small comments.. first, since the Clear method is called in every case of the switch statement, don't you think you should just pull it out and place it at the top, once? Second your method named GetStates doesn't actually return anything. I'd think something like SetStates or BindStates would be a more appropriate name. In any case, the video is very nicely done and easy to follow, good job.

Nezdet : On March 11, 2009 11:34 AM said:

What is the difference between this method and the cascading?

Agoyal : On March 12, 2009 10:04 PM said:

Nice video very informative

BEHPAK : On March 27, 2009 12:08 PM said:

Hi Mr. chris Pels

thank you for your so nice videos & amazing notes

i want ask you to produce a video to implement & Integration of

FCKeditor to an asp.net Project

i think it is a common problem for asp developers

thank you so much

uwspstar : On April 01, 2009 1:36 PM said:

great job !!! thanks

tjoudeh : On April 05, 2009 1:02 PM said:

Thanks for the video, I believe that video should be moved to AJAX videos sections hence you use script manager and update panels!!

Leave a Comment

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

Microsoft Communities