PersistenceMode

Discussion in 'ASP .Net Web Controls' started by Mike, Apr 1, 2005.

  1. Mike

    Mike Guest

    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.
     
    Mike, Apr 1, 2005
    #1
    1. Advertisements

  2. Mike

    Brock Allen Guest

    Add [ParseChildren(true)] to your control class.
     
    Brock Allen, Apr 1, 2005
    #2
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.