fill dropdownlist in javascript
-
Hi, I am developping in asp.net 2005. I have 2 dropdownlists A and B. When i am selecting an item from A, I would like to fill Dropdownlist B but without posting back. If I understand right, I have to do this in javascript. The problem is that I want to read from my database (access). Please, see example of what i am trying to do: selecting 'state' will fill 'city' accordingly: http://www.magicbricks.com/property/faces/jsp/search/requirementSearch.jsp?SEARCH_PAGE=REQUIREMENT_SEARCH[^] Please help
Shay Noy
-
Hi, I am developping in asp.net 2005. I have 2 dropdownlists A and B. When i am selecting an item from A, I would like to fill Dropdownlist B but without posting back. If I understand right, I have to do this in javascript. The problem is that I want to read from my database (access). Please, see example of what i am trying to do: selecting 'state' will fill 'city' accordingly: http://www.magicbricks.com/property/faces/jsp/search/requirementSearch.jsp?SEARCH_PAGE=REQUIREMENT_SEARCH[^] Please help
Shay Noy
-
Hi, I am developping in asp.net 2005. I have 2 dropdownlists A and B. When i am selecting an item from A, I would like to fill Dropdownlist B but without posting back. If I understand right, I have to do this in javascript. The problem is that I want to read from my database (access). Please, see example of what i am trying to do: selecting 'state' will fill 'city' accordingly: http://www.magicbricks.com/property/faces/jsp/search/requirementSearch.jsp?SEARCH_PAGE=REQUIREMENT_SEARCH[^] Please help
Shay Noy
-
Hi, I am developping in asp.net 2005. I have 2 dropdownlists A and B. When i am selecting an item from A, I would like to fill Dropdownlist B but without posting back. If I understand right, I have to do this in javascript. The problem is that I want to read from my database (access). Please, see example of what i am trying to do: selecting 'state' will fill 'city' accordingly: http://www.magicbricks.com/property/faces/jsp/search/requirementSearch.jsp?SEARCH_PAGE=REQUIREMENT_SEARCH[^] Please help
Shay Noy
-
If you are using .net 2.0 you can achieve this with a control in the ajax control toolkit which can do cascading dropdowns. http://www.asp.net/AJAX/AjaxControlToolkit/Samples/CascadingDropDown/CascadingDropDown.aspx[^]
thanks
Shay Noy
-
You could do this using ASP.NET AJAX[^]. Follow the tutorials on the site for more information.
Paul Marfleet "No, his mind is not for rent To any God or government" Tom Sawyer - Rush
thanks
Shay Noy
-
I success to implement the callback process with 2 dropdownlist. When my page is posting back, the second dropdownlist (with the callback) is beeing empty. What is the problem? What can I do to prevent this? Thank you
Shay Noy