how can I do this

Results 1 to 3 of 3

Thread: how can I do this

  1. #1
    Join Date
    Dec 1969

    Default how can I do this

    hi,<BR><BR>I wanted to know how to accomplish:<BR><BR>when I have few data from one of the tables called country, using a do while not rs.eof and popultating all the country values to one of the dropdown list<BR><BR>When the user selects any of the country I want to show the states of that particular country from database called states to another dropdown list.<BR><BR>How to achieve this<BR><BR>Thanks<BR><BR>jpn<BR><BR>

  2. #2
    Join Date
    Dec 1969

    Default javascript array would be best

    What I&#039;d do is get all your data out in one go, to save you too many trips to the database. Put it all into JS arrays and work with it that way.<BR><BR>Here&#039;s a good example:<BR><BR><BR><BR>(Just view source, obviously).<BR><BR>All the data in this example is static, but it&#039;s trivial to use ASP to fetch dynamic data instead.<BR><BR>HTH<BR><BR>Rob

  3. #3
    Join Date
    Dec 1969

    Default Yep, two choices...

    JS arrays or submit the page back to the ASP server for refresh.<BR><BR>I demo that at ... look for the category/subcategory lists demo.<BR><BR>

Posting Permissions

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