dropdown list box

Results 1 to 2 of 2

Thread: dropdown list box

  1. #1
    Join Date
    Dec 1969

    Default dropdown list box

    hi,<BR><BR>i have 2 drop down list boxes, continent and country . I have the all the data for these two fields in a single table. Now initially, a database query will be executed so that the first dropdown i.e continent will be filled with records of continent field retrieved from the table. Now when the user selects any continent from the first dropdown, the related countries should be filled into the second dropdown list without using a second database query.<BR><BR>regards

  2. #2
    Join Date
    Dec 1969

    Default RE: dropdown list box

    I think that the only way to do this without requrying a database is to use a javascript function. Here is a webaddress to go to for an example.<BR><BR>www.learnasp.com/learn/listdynamic.asp<BR><BR>In this example they use a hardcoded array but I think that it would be easy to modify it to create the array from a database.<BR><BR>Hope this helps.<BR><BR>Dennis

Posting Permissions

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