Value for design time user control lost on postback

Discussion in 'ASP .Net' started by rowe_newsgroups, Apr 28, 2007.

  1. A quick an easy question that has me stumped:

    I created a simple web user control that is basically a custom bound
    drop down list. If I add this control at design time, it's value is
    lost during a postback, regardless of the EnableViewState setting.
    However, if I use a placeholder and add the control in the Page_Load
    event handler, it works as desired.

    What exactly am I missing here? Shouldn't the value restore the same
    in both scenarios? Or do I misunderstand how ViewState works?

    Thanks for your time!

    Seth Rowe
    rowe_newsgroups, Apr 28, 2007
    #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. Ashish

    textbox value lost upon postback

    Ashish, Feb 17, 2004, in forum: ASP .Net
    Replies:
    2
    Views:
    9,935
    Ashish
    Feb 17, 2004
  2. Ashish
    Replies:
    0
    Views:
    355
    Ashish
    Feb 17, 2004
  3. Celine
    Replies:
    3
    Views:
    18,958
    James Thomas
    Sep 3, 2004
  4. dma

    datagrid inherited control lost design time settings

    dma, Jan 31, 2004, in forum: ASP .Net Building Controls
    Replies:
    1
    Views:
    184
  5. BobbyMy
    Replies:
    0
    Views:
    191
    BobbyMy
    Aug 27, 2005
Loading...

Share This Page