Retaining WebControl Properties

Discussion in 'ASP .Net Building Controls' started by Angel, Jun 10, 2004.

  1. Angel

    Angel Guest

    I have built a web control that inherits from webcontrol class. When using the control I created in a project, I set certain properties such as the Font, font size that were inherit in the webcontrol class. When I perform a postback to the server those properties that I set with values are not retained, eventhough I set EnableViewState = true.

    Do I need to save all the inherited properties from webcontrol and my own custom properties to ViewState in the WebControl?

    Thanks...
    Angel, Jun 10, 2004
    #1
    1. Advertising

  2. "Angel" <> wrote in message
    news:...
    > I have built a web control that inherits from webcontrol class. When using

    the control I created in a project, I set certain properties such as the
    Font, font size that were inherit in the webcontrol class. When I perform a
    postback to the server those properties that I set with values are not
    retained, eventhough I set EnableViewState = true.
    >
    > Do I need to save all the inherited properties from webcontrol and my own

    custom properties to ViewState in the WebControl?

    In which event did you set the properties?
    --
    John Saunders
    johnwsaundersiii at hotmail
    John Saunders, Jun 10, 2004
    #2
    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. Guest
    Replies:
    2
    Views:
    723
  2. Luis Ramírez.

    Can a webcontrol (webcontrol.dll) have a configuration file?

    Luis Ramírez., Jul 5, 2004, in forum: ASP .Net Building Controls
    Replies:
    2
    Views:
    181
    Luis Ramírez
    Jul 6, 2004
  3. Kasabaarde Sumta

    WebControl inside of WebControl and attaching events

    Kasabaarde Sumta, Dec 13, 2004, in forum: ASP .Net Building Controls
    Replies:
    0
    Views:
    174
    Kasabaarde Sumta
    Dec 13, 2004
  4. Fabricio

    Custom webcontrol that references another webcontrol

    Fabricio, Sep 21, 2005, in forum: ASP .Net Building Controls
    Replies:
    0
    Views:
    166
    Fabricio
    Sep 21, 2005
  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