Ajax Cascading Dropdown
-
Hi All, I used Cascading dropdownlists for Coutry & State. I wrote webdervice to fill the dropdownlists. Its all working fine. But when i trying to get SelectedIndex of Dropdownlists, its always giving SelectedIndex as 0 (Zero). ex: int index =ddl_Country.SelectedIndex;//Giving '0' Please suggest me where i went wrong. Thanks in advance, sekhar
-
Hi All, I used Cascading dropdownlists for Coutry & State. I wrote webdervice to fill the dropdownlists. Its all working fine. But when i trying to get SelectedIndex of Dropdownlists, its always giving SelectedIndex as 0 (Zero). ex: int index =ddl_Country.SelectedIndex;//Giving '0' Please suggest me where i went wrong. Thanks in advance, sekhar
-
Hi All, I used Cascading dropdownlists for Coutry & State. I wrote webdervice to fill the dropdownlists. Its all working fine. But when i trying to get SelectedIndex of Dropdownlists, its always giving SelectedIndex as 0 (Zero). ex: int index =ddl_Country.SelectedIndex;//Giving '0' Please suggest me where i went wrong. Thanks in advance, sekhar
Hi, Just a small suggestion, you can access the SelectedValue property of the first CascadingDropDown control in order to populate the next CascadingDropDown control. Hope it helps, Thx, Gayani