ASP.NET custom server control: nested items
- by Dylan Lin
Hi,
In the aspx code view, we can code like this:
<asp:ListBox runat="server">
<asp:ListItem Text="Item1" />
<asp:ListItem Text="Item2" />
</asp:ListBox>
However, the ListItem class is not a server control. How could we do that? Is there some attributes being consumed by the visual studio? Thanks:)