Mixing child properties and child controls - how?

Discussion in 'ASP .Net Web Controls' started by Donal McWeeney, Feb 10, 2005.

  1. Hi,

    I'm building a custom control derived from WebControl - and I want to add a
    child property of type Style - but my control will also contain any amount
    of child controls - how do I go about doing this.

    eg.

    <MyCustomControl runat="server">
    <CustomStyle ... />

    <p>some text possibly</p>
    <asp:HyperLink runat="server" ...
    etc

    </MyCustomControl>

    Any pointers to examples greatly appreciated...

    Thanks

    Donal
    Donal McWeeney, Feb 10, 2005
    #1
    1. Advertising

  2. Donal McWeeney

    [MSFT] Guest

    [MSFT], Feb 11, 2005
    #2
    1. Advertising

  3. Hi Luke,

    Thanks for the pointer. Will start looking there...

    Sound

    Donal
    Donal McWeeney, Feb 11, 2005
    #3
  4. Donal McWeeney

    [MSFT] Guest

    Thank you for the update. If you have further questions, please feel free
    to post in the newsgroup

    Luke
    [MSFT], Feb 14, 2005
    #4
    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. Norm  via DotNetMonster.com

    mixing HTML controls with code behind controls

    Norm via DotNetMonster.com, May 10, 2005, in forum: ASP .Net
    Replies:
    3
    Views:
    2,534
    Norm via DotNetMonster.com
    May 10, 2005
  2. L.C. Rees
    Replies:
    3
    Views:
    381
    Scott David Daniels
    Feb 8, 2006
  3. Moldy

    Accessing Properties of Custom Controls child Controls

    Moldy, Sep 4, 2003, in forum: ASP .Net Building Controls
    Replies:
    8
    Views:
    212
    Moldy
    Sep 5, 2003
  4. Replies:
    0
    Views:
    195
  5. Moldy
    Replies:
    8
    Views:
    243
    Moldy
    Sep 5, 2003
Loading...

Share This Page