Populating three list boxes from the database

Ask a Question related to ASP, Design and Development.

  1. #1

    Default Populating three list boxes from the database

    Can anybody help?
    I need to have three list boxes automatically populating each other, (ie
    when region is selected from the first listbox, it will populate
    automatically the second one which is the TOWNS and when the town is
    selected is should populate the third one AREA) all data is in the database
    in one table.
    Any idea???
    Many thanks in adavance.
    Lamine


    Lamine Darbouche Guest

  2. Similar Questions and Discussions

    1. Populating a <mx:List> with XML
      I am trying to do a simple list population with a series of names from a local XML file. I'm looking for direction regarding how to pull my element...
    2. Error populating list
      Hi! I have a document with two listboxes, one called "lista_firenze" and the other called "lista_toscana". The "lista_toscana" has no problem, the...
    3. Populating Drop Down Boxes from a database
      We moved our wesite from a Box running Coldfusion 4.0 to a box running Coldfusion MX. We populate some drop down boxes with information from a...
    4. Dynamical populating a list that can be used as drop down list
      Hi, I have a solution in which a person can be a member of one or more groups. In this case the groups are those used in the protection schema of...
    5. Populating several combo boxes
      I have a form that will have a combo box repeated several times (continuous form, one for each record), it's going to cause a problem if each has to...
  3. #2

    Default Populating three list boxes from the database

    >-----Original Message-----
    >Can anybody help?
    >I need to have three list boxes automatically populating
    each other, (ie
    >when region is selected from the first listbox, it will
    populate
    >automatically the second one which is the TOWNS and when
    the town is
    >selected is should populate the third one AREA) all data
    is in the database
    >in one table.
    >Any idea???
    >Many thanks in adavance.
    >Lamine
    >
    >
    >.
    >
    Lamine.
    Are you using ASP or ASPX?
    With ASPX you set the autpostback = true and use the
    event selectedindexchanged of the dropdown or list.
    With old ASP, you have to identify wich dropdown list was
    changed. Make a javascript the gets the dropdown value
    and wich dropdown was selected
    ([url]http://www.site.com/code=90&drop=a[/url]). Then you can build
    the next one and so far.
    Ronaldo Guest

  4. #3

    Default Re: Populating three list boxes from the database

    Hi Ronaldo,
    Many thanks for you reply,
    I am using classic ASP, I tried your idea but without success, could you
    please me with some code or example if you have one.
    I have manged only two listboxes but found very hard with three listboxes.
    Many thanks in advance.
    Lamine

    "Ronaldo" <ronaldo@rsmsolucoes.com.br> wrote in message
    news:137401c38c16$a9f1c870$a401280a@phx.gbl...
    >
    > >-----Original Message-----
    > >Can anybody help?
    > >I need to have three list boxes automatically populating
    > each other, (ie
    > >when region is selected from the first listbox, it will
    > populate
    > >automatically the second one which is the TOWNS and when
    > the town is
    > >selected is should populate the third one AREA) all data
    > is in the database
    > >in one table.
    > >Any idea???
    > >Many thanks in adavance.
    > >Lamine
    > >
    > >
    > >.
    > >
    > Lamine.
    > Are you using ASP or ASPX?
    > With ASPX you set the autpostback = true and use the
    > event selectedindexchanged of the dropdown or list.
    > With old ASP, you have to identify wich dropdown list was
    > changed. Make a javascript the gets the dropdown value
    > and wich dropdown was selected
    > ([url]http://www.site.com/code=90&drop=a[/url]). Then you can build
    > the next one and so far.

    Lamine Darbouche Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139