G
Guest
Hi,
Didn't get any response last time from a simliar question, but I know this
can be done...any insight would be greatly appreciated!!
________
I have a user control that exposes several public properties--for example,
CurrentColor. In Visual Studio, I
can access my custom properties using Intellisense just fine...
<ctl:MyDropDown id="ctl1" runat="server" CurrentColor="..." />
However, I cannot add inner HTML (in this case, ListItems) to the
declaration. How can I code my control to behave like a DropDownList
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
Didn't get any response last time from a simliar question, but I know this
can be done...any insight would be greatly appreciated!!
________
I have a user control that exposes several public properties--for example,
CurrentColor. In Visual Studio, I
can access my custom properties using Intellisense just fine...
<ctl:MyDropDown id="ctl1" runat="server" CurrentColor="..." />
However, I cannot add inner HTML (in this case, ListItems) to the
declaration. How can I code my control to behave like a DropDownList
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