I am creating a user control in ASP.NET 2.0 that includes a DropDownList. Does anyone know how to get the collection of ListItems that are hard coded between the opening and closing tags of my custom control into the DropDownList inside my user control? I feel like I should know this already. :?:
Here's the error I'm currently getting.
Type 'ASP.form_controls_udropdownlist_ascx' does not have a public property named 'ListItem'.