nested controls in a custom control.

Discussion in 'ASP .Net' started by Peter Rilling, Mar 26, 2007.

  1. Hi.

    I would like to create some controls that allow control elements. For
    instance,

    <foo:MyControl ...>
    <foo:SomeNestedControl .../>
    </foo:MyControl>

    The questions are,
    1) How can I build a control that supports such control nesting?
    2) How can I get the IDE to display the nested control using intellisense?
    And even make it so that my nested control can only be used within it's
    parent.

    Kind of like the way an ASP.NET Table works.

    <asp:Table>

    <asp:TableRow>

    <asp:TableCell>

    </asp:TableCell>

    </asp:TableRow>

    </asp:Table>
    Peter Rilling, Mar 26, 2007
    #1
    1. Advertising

  2. http://samples.gotdotnet.com/quickstart/aspplus/doc/webctrlauthoring.aspx



    "Peter Rilling" <> wrote in message news:...
    > Hi.
    >
    > I would like to create some controls that allow control elements. For instance,
    >
    > <foo:MyControl ...>
    > <foo:SomeNestedControl .../>
    > </foo:MyControl>
    >
    > The questions are,
    > 1) How can I build a control that supports such control nesting?
    > 2) How can I get the IDE to display the nested control using intellisense? And even make it so that my nested control can only be
    > used within it's parent.
    >
    > Kind of like the way an ASP.NET Table works.
    >
    > <asp:Table>
    >
    > <asp:TableRow>
    >
    > <asp:TableCell>
    >
    > </asp:TableCell>
    >
    > </asp:TableRow>
    >
    > </asp:Table>
    >
    >
    >
    >
    Jon Paal [MSMD], Mar 26, 2007
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Marius Trælnes

    Nested controls in custom tab control

    Marius Trælnes, Jan 3, 2005, in forum: ASP .Net
    Replies:
    4
    Views:
    744
    Henrik Larsen
    Jan 3, 2005
  2. Dakota2030
    Replies:
    0
    Views:
    479
    Dakota2030
    Mar 11, 2005
  3. rodchar
    Replies:
    0
    Views:
    381
    rodchar
    Nov 26, 2007
  4. Matt Sokol
    Replies:
    2
    Views:
    366
    Theo Tillotson
    Aug 7, 2003
  5. Brook

    Custom Control, ITemplate and nested bound controls

    Brook, Mar 17, 2008, in forum: ASP .Net Web Controls
    Replies:
    4
    Views:
    431
    Brook
    Mar 25, 2008
Loading...

Share This Page