Best Practice for populating Dropdowns?

Topics: Web Client Software Factory, Project Management Forum, UIP Application Block discussion, User Forum
Dec 7, 2007 at 3:14 PM
I'm trying to figure out the best practice for populating dropdowns within WCSF.

What are soem ways in doing this? I have potentially alot of dropdowns that need to be populated and I'm not sure setting up entities and using OCDS is the best way to deal with it. What are some best practices in dealing with this?

Dec 7, 2007 at 7:58 PM
Hi Pat.

You don’t need to use a ObjectContainerDataSource.
In order to populate a DropDown, all you have to do is set the DataSource property of the DropDown in the View.

For example:

public IEnumerable<State> States
          StateDropDown.DataSource = value;


Sebastian Iacomuzzi