[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.aspnet.buildingcontrols

difference Inherits CompositeControl vs Inherits WebControl

ton

6/18/2007 12:46:00 PM

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

1 Answer

Teemu Keiski

6/24/2007 7:49:00 AM

0

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

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....
http://teemu...


"ton" <ton@nospam.nl> wrote in message
news:f55uqa$q6r$1@news1.zwoll1.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