views:

25

answers:

3

I am using JQuery to populate a set of three cascading dropdowns which have the autopostback to false. How in the code behind do I access the selected values of the dropdowns?

A: 

Have you tried DdlElement.SelectedItem.Value ?

JoseMarmolejos
A: 

Yes, but because there is no postback the server side ddlelment has no values

Darren Fahy
A: 

Remember when you are extending drop downs with CascadingDropDown AJAX extenders, you are not "posting back" to the same page, you are invoking "GET" HTTP requests to the nominated service method. Your page (code behind) has no idea the dropdown is being bound, this is done by the inbuilt callback function generated by the AJAX extender - in client code.

At what point and why are you trying to access the selected item?

RPM1984