Custom tags inside control

Discussion in 'ASP .Net Web Controls' started by Mike Gleason jr Couturier, Jul 15, 2008.

  1. Hi,

    I would like to support a custom tag inside my custom control like this:

    <cc1:MyControl id="x" runat="server">
    <customTag prop1="x" prop2="e" />
    <customTag prop1="y" prop2="d" />
    <customTag prop1="z" prop2="c" />
    <customTag prop1="a" prop2="b" />
    </MyControl>

    Just like the repeater with the <ItemTemplate>

    Is there any article/keywords I can refer to, to learn further on the
    subject?

    Thanks!
    Mike Gleason jr Couturier, Jul 15, 2008
    #1
    1. Advertising

  2. Hi there

    > I would like to support a custom tag inside my custom control like this:
    >
    > <cc1:MyControl id="x" runat="server">
    > <customTag prop1="x" prop2="e" />
    > <customTag prop1="y" prop2="d" />
    > <customTag prop1="z" prop2="c" />
    > <customTag prop1="a" prop2="b" />
    > </MyControl>
    >
    > Just like the repeater with the <ItemTemplate>
    >
    > Is there any article/keywords I can refer to, to learn further on the
    > subject?

    Yep there are.
    Search for the Attributes "PersistenceMode" and "ParseChildren".

    --
    Gruss, Peter Bucher
    Microsoft MVP - Visual Developer ASP / ASP.NET, Switzerland
    http://www.aspnetzone.de/ - ASP.NET Zone, die ASP.NET Community
    http://www.aspnetzone.de/blogs/peterbucher/ - Auf den Spuren von .NET
    Peter Bucher [MVP], Jul 21, 2008
    #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. Ranganath

    Custom Tags within Custom Tags.

    Ranganath, Oct 17, 2003, in forum: Java
    Replies:
    2
    Views:
    445
    Ranganath
    Oct 21, 2003
  2. Mike
    Replies:
    3
    Views:
    865
    Michael Borgwardt
    Jan 9, 2004
  3. A. Brinkmann
    Replies:
    2
    Views:
    1,066
    A. Brinkmann
    Apr 16, 2004
  4. Dave
    Replies:
    0
    Views:
    445
  5. MRe

    Prevent certain tags inside custom control

    MRe, Aug 24, 2006, in forum: ASP .Net Building Controls
    Replies:
    0
    Views:
    111
Loading...

Share This Page