Home All Groups Group Topic Archive Search About
Author
1 Apr 2005 6:39 PM
Mike
Hi,
I'm building a WebCustomControl, and if i inherit from
System.Web.UI.WebControl and set the attribute
DesignerSerializationVisibility = Content and PersistenceMode =
InnerProperty to a System.Web.WebControls.Style property, in the design html
of the control each style property is nested between <style> tag. If i
inherit from System.Web.UI.Control the html of the Style is not writing. If
I want to persist the properties i must set de PersistenceMode in Attribute.
The question: I can't persist the properties with PersistenceMode =
InnerProperty?

Thanks.

Author
1 Apr 2005 6:50 PM
Brock Allen
Add [ParseChildren(true)] to your control class.

-Brock
DevelopMentor
http://staff.develop.com/ballen



Show quoteHide quote
> Hi,
> I'm building a WebCustomControl, and if i inherit from
> System.Web.UI.WebControl and set the attribute
> DesignerSerializationVisibility = Content and PersistenceMode =
> InnerProperty to a System.Web.WebControls.Style property, in the
> design html
> of the control each style property is nested between <style> tag. If i
> inherit from System.Web.UI.Control the html of the Style is not
> writing. If
> I want to persist the properties i must set de PersistenceMode in
> Attribute.
> The question: I can't persist the properties with PersistenceMode =
> InnerProperty?
> Thanks.
>

Bookmark and Share

Post Thread options