How can I persist the state of a DropDownList control

Discussion in 'ASP .Net Building Controls' started by nail, Sep 28, 2004.

  1. nail

    nail Guest

    Greetings,
    I"m develop a custom control (render). It inherits a ListControl.
    In the Render method, I apply an ArrayList to the DataSource property and
    call the DataBind method.
    So, how can I get the SelectIndexChanged event?
    In other words, how can I know when the user change the dropdownlist
    selected item, after all, in the LoadPostData method the postcollection came
    null every time.

    Thanks.

    nail.
    nail, Sep 28, 2004
    #1
    1. Advertising

  2. nail

    nail Guest

    Thanks.
    I resolve with a ViewState field.

    nail

    "nail" <> wrote in message
    news:e0Fd$...
    > Greetings,
    > I"m develop a custom control (render). It inherits a ListControl.
    > In the Render method, I apply an ArrayList to the DataSource property and
    > call the DataBind method.
    > So, how can I get the SelectIndexChanged event?
    > In other words, how can I know when the user change the dropdownlist
    > selected item, after all, in the LoadPostData method the postcollection
    > came null every time.
    >
    > Thanks.
    >
    > nail.
    >
    nail, Sep 28, 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. Richard Dixson
    Replies:
    1
    Views:
    499
    Joe Fallon
    May 18, 2004
  2. Henri
    Replies:
    6
    Views:
    732
    Henri
    Aug 6, 2004
  3. =?Utf-8?B?QWlkYXMgUGFzaWxpcw==?=

    Session State doesn't persist after postback (code: C#)

    =?Utf-8?B?QWlkYXMgUGFzaWxpcw==?=, Sep 15, 2005, in forum: ASP .Net
    Replies:
    4
    Views:
    6,017
    Bruce Barker
    Sep 15, 2005
  4. musosdev

    .net 3.5 - DropDownList won't persist

    musosdev, May 28, 2009, in forum: ASP .Net
    Replies:
    5
    Views:
    1,226
    Norman Yuan
    May 29, 2009
  5. Thomas 'PointedEars' Lahn

    persist js-block-resident state across ajax downloads?

    Thomas 'PointedEars' Lahn, Dec 4, 2009, in forum: Javascript
    Replies:
    5
    Views:
    119
    Thomas 'PointedEars' Lahn
    Dec 5, 2009
Loading...

Share This Page