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. Advertisements

  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. Advertisements

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. =?Utf-8?B?QW5nZWw=?=

    COMBO BOX INSTEAD OF DROP DOWN BOX

    =?Utf-8?B?QW5nZWw=?=, Jun 29, 2004, in forum: ASP .Net
    Replies:
    3
    Views:
    852
    Ken Cox [Microsoft MVP]
    Jun 29, 2004
  2. Jacques Chaurette

    combo box selection problem

    Jacques Chaurette, May 31, 2005, in forum: Java
    Replies:
    0
    Views:
    518
    Jacques Chaurette
    May 31, 2005
  3. Satish
    Replies:
    8
    Views:
    10,086
    Satish
    Mar 31, 2008
  4. curiousity

    HOWTO autopost the selection list upon selection

    curiousity, Nov 21, 2003, in forum: ASP .Net Mobile
    Replies:
    0
    Views:
    421
    curiousity
    Nov 21, 2003
  5. rikesh

    Display User Selection From Combo Box

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

    Fill Combo Box based on another Combo Box

    dthmtlgod, Nov 16, 2005, in forum: ASP General
    Replies:
    1
    Views:
    788
    Bob Barrows [MVP]
    Nov 16, 2005
  7. Mike

    Combo Box and text box

    Mike, Sep 24, 2003, in forum: Javascript
    Replies:
    2
    Views:
    406
  8. SM
    Replies:
    2
    Views:
    544
Loading...