Updatate Combobox options based on other combobox (ASP/SQL)

Results 1 to 3 of 3

Thread: Updatate Combobox options based on other combobox (ASP/SQL)

  1. #1
    Join Date
    Dec 1969
    Posts
    13

    Default Updatate Combobox options based on other combobox (ASP/SQL)

    I&#039ve got a form including some textareas and two ComboBoxes with options taken from SQL-string. When I select option in the first one I want the other one to get new options (requerry SQL), I&#039d be glad if I don&#039t have to post the form because I want to keep the text in the textboxes. How can I do this? I would prefer to use VB-script, because I&#039ve used that everywhere else.

  2. #2
    Bikash Panda Guest

    Default RE: Updatate Combobox options based on other combobox (ASP/SQL)

    Hi,<BR>You can use client side scripting using JavaScript(Netscape Browser does not support VbScript) to populate the second combo using the selected item of the first combo. But unless you post the form how are you going to access the database. If you do not have too much of items in both the combos you can carry everything to the client & then use there. I feel this way you get rid of posting the form.

  3. #3
    Join Date
    Dec 1969
    Posts
    13

    Default RE: Updatate Combobox options based on other combobox (ASP/SQL)

    Thanx!

Posting Permissions

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