Listcontrol on placeholder does not maintain state

Discussion in 'ASP .Net' started by chak, Aug 15, 2003.

  1. chak

    chak Guest

    I have developed a form which dynamically builds textbox, radiobuttonlist,
    checkboxlist controls from parameters in a table, and somehow manages to
    maintain state (of data keyed in by user). However, the listbox that i
    invoke on click of a help button does not maintain state (i am not
    re-loading the list on postback , which is a usual problem). Does anybody
    have any idea what could be the issue ? The only asp control i have defined
    in the aspx page is the placeholder. All controls are being placed
    dynamically on this placeholder. Only the listbox fails to maintain state,
    though there is a autopostback = true on 'selectedindexchanged' event.

    Thanks.
     
    chak, Aug 15, 2003
    #1
    1. Advertising

  2. chak

    R Guest

    If you are creating controls at runtime you need to do so in LoadViewState
    otherwise the events will not get hooked up.

    R


    "chak" <> wrote in message
    news:#...
    > I have developed a form which dynamically builds textbox, radiobuttonlist,
    > checkboxlist controls from parameters in a table, and somehow manages to
    > maintain state (of data keyed in by user). However, the listbox that i
    > invoke on click of a help button does not maintain state (i am not
    > re-loading the list on postback , which is a usual problem). Does anybody
    > have any idea what could be the issue ? The only asp control i have

    defined
    > in the aspx page is the placeholder. All controls are being placed
    > dynamically on this placeholder. Only the listbox fails to maintain state,
    > though there is a autopostback = true on 'selectedindexchanged' event.
    >
    > Thanks.
    >
    >
    >
    >
     
    R, Aug 23, 2003
    #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. Bruno Ferreira
    Replies:
    0
    Views:
    470
    Bruno Ferreira
    Nov 6, 2003
  2. Elad Volpin
    Replies:
    3
    Views:
    2,406
    Elad Volpin
    Jul 18, 2004
  3. nail

    Build control in a placeholder or like a placeholder

    nail, Sep 10, 2004, in forum: ASP .Net Building Controls
    Replies:
    0
    Views:
    370
  4. chak

    Listbox on placeholder does not maintain state ?

    chak, Aug 15, 2003, in forum: ASP .Net Web Controls
    Replies:
    1
    Views:
    302
  5. AR

    treview does not maintain state

    AR, May 8, 2006, in forum: ASP .Net Web Controls
    Replies:
    1
    Views:
    140
    Prakash V
    Jun 7, 2006
Loading...

Share This Page