ASPX templates
Version 4.x > ASPX templates > Are web parts just wrappers around regular controls? View modes: 
User avatar
Member
Member
random0xff - 5/13/2009 4:09:49 PM
   
Are web parts just wrappers around regular controls?
I am developing ASPX templates. At first I thought I needed to use a web part for a the menu, but then I checked out the markup and code for the web parts in ~/CMSWebParts/Navigation, and it was just a wrapper around another control, getters and setters just forwarded to the control.

Is this always the case? Is this just so that the web parts can be used when doing non-aspx development?

Thanks for explaining!

User avatar
Kentico Developer
Kentico Developer
kentico_martind - 5/23/2009 5:02:51 AM
   
RE:Are web parts just wrappers around regular controls?
Hello,

Yes, web parts just enwrap other controls in most cases (but not in all cases, please see e.g. EditableText web part), so they can be used in Portal Engine. Nevertheless, web parts can be used in ASPX templates as well.

Best Regards,

Martin Dobsicek