S
Steve Trandahl
I have a composite control consisting of a DropdownList control and a button.
I've included an Items property that returns a reference to the
DropDownList's Items property, but when I add ListItems to it in Design mode,
they aren't added as <asp:ListItem> in the HTML tab. Instead
"Items=(Collection)" appears in the Control's tag and the designer eventually
"forgets" the ListItems that were entered.
How do I get the designer to add an asp:ListItem for each Item the way it
does with the standard DropDownList that's part of my control?
Thanks,
Steve
I've included an Items property that returns a reference to the
DropDownList's Items property, but when I add ListItems to it in Design mode,
they aren't added as <asp:ListItem> in the HTML tab. Instead
"Items=(Collection)" appears in the Control's tag and the designer eventually
"forgets" the ListItems that were entered.
How do I get the designer to add an asp:ListItem for each Item the way it
does with the standard DropDownList that's part of my control?
Thanks,
Steve