Populate List Box base on Combo Box Selection

Discussion in 'ASP General' started by Adrian, Feb 18, 2004.

  1. Adrian

    Adrian Guest

    Hi
    I kind of new here, but how do i get a value from a combo box and populate a list box base on the selected value from a combo box? If possible can i get a sample coding Thank you.

    regards
    Adria
    Email :
    Adrian, Feb 18, 2004
    #1
    1. Advertising

  2. Adrian

    Bullschmidt Guest

    Some ways to do a dependent list box are the following:
    1) Reload a self-posting form (advantage: clean and fairly easy,
    disadvantage: form has to reload).
    2) Send all the data down to the form and let JavaScript do the work
    (disadvantage: sends all the data to the form).
    3) Remote scripting (disadvantage: may have security risks).
    4) Hidden frames (disadvantage: complicated).

    As for myself I like to keep it simple and just let the page post to
    itself and then show the info in the 2nd list box based on the posted
    value from the first.

    ASP Design Tips - Dependent Listboxes
    http://www.bullschmidt.com/devtip-dependentlistboxes.asp

    Best regards,
    J. Paul Schmidt, Freelance ASP Web Developer
    http://www.Bullschmidt.com
    ASP Design Tips, ASP Web Database Demo, Free ASP Bar Chart Tool...


    *** Sent via Developersdex http://www.developersdex.com ***
    Don't just participate in USENET...get rewarded for it!
    Bullschmidt, Feb 18, 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. Jacques Chaurette

    combo box selection problem

    Jacques Chaurette, May 31, 2005, in forum: Java
    Replies:
    0
    Views:
    412
    Jacques Chaurette
    May 31, 2005
  2. Satish
    Replies:
    8
    Views:
    9,639
    Satish
    Mar 31, 2008
  3. rikesh

    Display User Selection From Combo Box

    rikesh, Feb 6, 2004, in forum: ASP General
    Replies:
    8
    Views:
    158
    rikesh
    Feb 9, 2004
  4. dthmtlgod

    Fill Combo Box based on another Combo Box

    dthmtlgod, Nov 16, 2005, in forum: ASP General
    Replies:
    1
    Views:
    587
    Bob Barrows [MVP]
    Nov 16, 2005
  5. SM
    Replies:
    2
    Views:
    364
Loading...

Share This Page