Archive for posts tagged with 'ListItem'
-
Populating multiple DropDownList controls with generic ListItem array
I’ve just had some fun spending the last half-an-hour trying to figure out why when I used the SelectedValue property of a DropDownList, it also set the value of another DropDownList control. Here’s some background to the problem. On my web-form, I have 2 fieldsets, one for a "Start Date", the other for an "End Date". For each fieldset there are 3 DropDownList; Day, Month and Year. Now rather than populating the values declaratively, using…