Inherit from Sitecore.Web.UI.WebControl instead of System.Web.UI.WebControl, and
override DoRender() instead of Render().
If you inherit from System.Web.UI.WebControl, you can't use the control in
Developer Center, you can't bind it to a placeholder, and you can't use Sitecore
output caching for that control.
http://sdn.sitecore.net/Reference/Sitecore%206/Presentation%20Component%20Refere\
nce.aspx
http://sdn.sitecore.net/Reference/Sitecore%206/Presentation%20Component%20Cookbo\
ok.aspx
--- On Thu, 10/23/08, azamat_kd <
azamat_kd@...> wrote:
> From: azamat_kd <
azamat_kd@...>
> Subject: [sitecore] Type does not have a public property named 'renderingid'
> To:
sitecore@yahoogroups.com
> Date: Thursday, October 23, 2008, 3:27 AM
> Hi,
>
> I have created one control which is inherited from
> System.Web.UI.Control
>
> It works fine in Content Editor..but if you go to Developer
> Center and
> add the control to any layout it generates runtime error.
>
> The error message is : Type 'mynamespace.mycontrol'
> doen not have a
> publich property named 'renderingid'
>
> Can anybody have any idea what i am doing wrong here?
>
> Thanks in advance...