G
Guest
Hi,
I have a custom control inherited from DropDownList. In Visual Studio, I
can access my added properties using Intellisense just fine...
<ctl:MyDropDown id="ctl1" runat="server" CurrentColor="..." />
However, I cannot add ListItems to it. How can I code my control, so I can
do something like this?
<ctl:MyDropDown id="ctl1" runat="server" CurrentColor="...">
<asp:ListItem Text="..." Value="..." />
<asp:ListItem Text="..." Value="..." />
<asp:ListItem Text="..." Value="..." />
</ctl:MyDropDown>
Thank you,
newGuy
I have a custom control inherited from DropDownList. In Visual Studio, I
can access my added properties using Intellisense just fine...
<ctl:MyDropDown id="ctl1" runat="server" CurrentColor="..." />
However, I cannot add ListItems to it. How can I code my control, so I can
do something like this?
<ctl:MyDropDown id="ctl1" runat="server" CurrentColor="...">
<asp:ListItem Text="..." Value="..." />
<asp:ListItem Text="..." Value="..." />
<asp:ListItem Text="..." Value="..." />
</ctl:MyDropDown>
Thank you,
newGuy