How to serialize an extended property for a Webcontrol?

Discussion in 'ASP .Net Building Controls' started by Stefaan V., Oct 7, 2004.

  1. Stefaan V.

    Stefaan V. Guest

    Dear all,
    I created a webcontrol that makes use of an extended property which I want
    to serialize or dynamically add in the InitializeComponent method.

    E.g. Suppose I created a Help Provider and dropped it on my webpage. This
    controls adds an extra Help property to the web controls on the page.

    Now I want that when I close the web page that the Help values I set for
    each control to be serialized either as an attribute in the respective
    control (e.g. <asp:Label id="lblX" help="Help me" > or something like
    HelpProvider.SetHelp(lblX,"Help me") in InitializeComponent.

    I already tried DesignerSerializationVisibility(combined with default value)
    but it doesnt work. When I
    use similar code for Windows Forms it does work. Any ideas ?
    Thanks in advance!
    Stefaan
    Stefaan V., Oct 7, 2004
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Gordz
    Replies:
    3
    Views:
    3,923
    John Oakes
    Jun 7, 2004
  2. Gergely Varadi

    Howto serialize a WebControl into .resx file?

    Gergely Varadi, Sep 25, 2003, in forum: ASP .Net Building Controls
    Replies:
    0
    Views:
    128
    Gergely Varadi
    Sep 25, 2003
  3. KK
    Replies:
    1
    Views:
    108
    Mike MacMillan
    Dec 28, 2005
  4. Stefaan V.

    Serialize Extended Properties in a web control

    Stefaan V., Sep 29, 2004, in forum: ASP .Net Web Controls
    Replies:
    0
    Views:
    140
    Stefaan V.
    Sep 29, 2004
  5. Peter Morris [Air Software Ltd]

    WebControl with non-WebControl property

    Peter Morris [Air Software Ltd], Dec 7, 2004, in forum: ASP .Net Web Controls
    Replies:
    1
    Views:
    126
    Peter Morris [Air Software Ltd]
    Dec 7, 2004
Loading...

Share This Page