ASP.NET custom server control: nested items
        Posted  
        
            by Dylan Lin
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Dylan Lin
        
        
        
        Published on 2010-04-06T09:31:31Z
        Indexed on 
            2010/04/06
            9:33 UTC
        
        
        Read the original article
        Hit count: 401
        
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:)
© Stack Overflow or respective owner