Using a data-bind dropdownlist to populate another data-bind dropdownlist

Discussion in 'ASP .Net' started by mr2_93, Oct 2, 2005.

  1. mr2_93

    mr2_93 Guest

    Hi All,

    I am new to ASP.NET and I am looking for help with the dropdownlist data
    control.

    I wonder if someone could show me how to past the SelectedValue of a
    data-bind dropdownlist to poplulate a second data-bind dropdownlist.

    For example, the first dropdownlist contains a list of companies and the
    second dropdownlist displays a product list based on the selected value of
    the first dropdownlist (after PostBack).

    Also, how could I prevent the first dropdownlist from changing the selected
    item back to the first/default item (i.e. item 0) after PostBack?


    Thanks a lot for your help.


    M.
     
    mr2_93, Oct 2, 2005
    #1
    1. Advertising

  2. mr2_93

    mr2_93 Guest

    Sorry, typo: "...how to pass the SelectedValue....." (not 'past').


    "mr2_93" <> wrote in message
    news:...
    > Hi All,
    >
    > I am new to ASP.NET and I am looking for help with the dropdownlist data
    > control.
    >
    > I wonder if someone could show me how to past the SelectedValue of a
    > data-bind dropdownlist to poplulate a second data-bind dropdownlist.
    >
    > For example, the first dropdownlist contains a list of companies and the
    > second dropdownlist displays a product list based on the selected value of
    > the first dropdownlist (after PostBack).
    >
    > Also, how could I prevent the first dropdownlist from changing the
    > selected item back to the first/default item (i.e. item 0) after PostBack?
    >
    >
    > Thanks a lot for your help.
    >
    >
    > M.
    >
     
    mr2_93, Oct 2, 2005
    #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. Chris Kettenbach

    Listbox selection to populate another listbox?

    Chris Kettenbach, Jun 15, 2005, in forum: ASP .Net
    Replies:
    3
    Views:
    1,654
    Chris Kettenbach
    Jun 16, 2005
  2. Mike P
    Replies:
    1
    Views:
    370
    DavidG
    Jan 13, 2006
  3. Kurt of San Jose
    Replies:
    0
    Views:
    631
    Kurt of San Jose
    Apr 4, 2008
  4. Steve Myers
    Replies:
    2
    Views:
    280
    Steve Myers
    Nov 20, 2003
  5. Enjoy Life
    Replies:
    2
    Views:
    280
    Roland Hall
    Feb 23, 2005
Loading...

Share This Page