|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
PersistenceModeHi,
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. 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. > |
|||||||||||||||||||||||