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 in our custom server control? That is, how to develop a ListItem-like class which can make this markup style works? I'm building a server control which is similar to the ListBox.
Thanks:)