difference Inherits CompositeControl vs Inherits WebControl

Discussion in 'ASP .Net Building Controls' started by ton, Jun 18, 2007.

  1. ton

    ton Guest

    Hi
    i'm developing web server controls for my project.

    When I use Inherits WebControl, the control can use the width of the
    control, but when I use Inherits Compositecontrol the width of the control
    stays=0 allthough I do see the control drawing with a certain width.
    Is their a list of properties a usercontrol will inherit when using inherits
    webcontrol?

    thanx

    ton
     
    ton, Jun 18, 2007
    #1
    1. Advertisements

  2. ton

    Teemu Keiski Guest

    CompositeControl derives from WebControl. You'll see all that information on
    docs:
    http://msdn2.microsoft.com/en-us/library/system.web.ui.webcontrols.compositecontrol.aspx

    Note that with CompositeControl styles etc should apply to child controls
    so that they'd had visible impact.


    --
    Teemu Keiski
    AspInsider, ASP.NET MVP
    http://blogs.aspadvice.com/joteke
    http://teemukeiski.net


    "ton" <> wrote in message
    news:f55uqa$q6r$1.ov.home.nl...
    > Hi
    > i'm developing web server controls for my project.
    >
    > When I use Inherits WebControl, the control can use the width of the
    > control, but when I use Inherits Compositecontrol the width of the control
    > stays=0 allthough I do see the control drawing with a certain width.
    > Is their a list of properties a usercontrol will inherit when using
    > inherits webcontrol?
    >
    > thanx
    >
    > ton
     
    Teemu Keiski, Jun 24, 2007
    #2
    1. Advertisements

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. Guest
    Replies:
    2
    Views:
    908
  2. Alex Nitulescu
    Replies:
    0
    Views:
    505
    Alex Nitulescu
    Feb 22, 2005
  3. Bart_D
    Replies:
    7
    Views:
    2,442
  4. Luis Ramírez.

    Can a webcontrol (webcontrol.dll) have a configuration file?

    Luis Ramírez., Jul 5, 2004, in forum: ASP .Net Building Controls
    Replies:
    2
    Views:
    412
    Luis Ramírez
    Jul 6, 2004
  5. Kasabaarde Sumta

    WebControl inside of WebControl and attaching events

    Kasabaarde Sumta, Dec 13, 2004, in forum: ASP .Net Building Controls
    Replies:
    0
    Views:
    323
    Kasabaarde Sumta
    Dec 13, 2004
  6. Fabricio

    Custom webcontrol that references another webcontrol

    Fabricio, Sep 21, 2005, in forum: ASP .Net Building Controls
    Replies:
    0
    Views:
    330
    Fabricio
    Sep 21, 2005
  7. D.G.
    Replies:
    0
    Views:
    271
  8. Peter Morris [Air Software Ltd]

    WebControl with non-WebControl property

    Peter Morris [Air Software Ltd], Dec 7, 2004, in forum: ASP .Net Web Controls
    Replies:
    1
    Views:
    239
    Peter Morris [Air Software Ltd]
    Dec 7, 2004
Loading...