Quantcast
Channel: ASP.NET AJAX + Ajax Control Toolkit (ACT)
Viewing all articles
Browse latest Browse all 5678

Passing a value from javascript to perform Ajax cascading dropdownlist

$
0
0

Hello everyone, I have this situation. I have a popup and there are two cascading dropdownlists called category and product. For example, if you select electronics, the second dropdown will show TV, microwave oven and so on. The popup also have other additional information such as product name and price in the textboxes and the dropdownlist will show the right category and right product selection. I used javascript to populate the information on the popup. However, I got a problem with dropdownlist. 

When the popup shows up, the first dropdownlist already passed the value as parameter to the second dropdownlist. Although I am able to change the selected value in the first dropdownlist using javascript, the second dropdown has already been populated with the incorrect category value passing from the first dropdownlist. 

So what I want to achieve is when the popup shows up, I want to pass the value from my javascript and repopulate the second dropdownlist with the correct value. 

Thanks for your help.


Viewing all articles
Browse latest Browse all 5678

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>