S
Shawshank
I am nearly desperate. Hope anyone of you can help.
In my web application, I need to use several interdependent DropDownLists,
which means contents and selections of one dropdownlist depends on slection
in another. Initially I used server side OnSelectionChange event handler of
one dropdownlist to populate the other dropdownlist . it workded well
functionally but the postback is really distracting.
So I used client side javascript to populate the client control of the
dropdownlist (( of course with a little pain by getting the ClientId on
server side and pass it to the Javascript so that JS knows which control to
insert options). It worked fine on the client side, but the server cannot
pick up the changes (new Items, and SelectedValue, SelectedIndex, etc. It
seems server is ignoring any change JavaScript makes. ) user made on the
client after user click "submit".
I have been stuck on this for two days, and please help!
Thanks!
In my web application, I need to use several interdependent DropDownLists,
which means contents and selections of one dropdownlist depends on slection
in another. Initially I used server side OnSelectionChange event handler of
one dropdownlist to populate the other dropdownlist . it workded well
functionally but the postback is really distracting.
So I used client side javascript to populate the client control of the
dropdownlist (( of course with a little pain by getting the ClientId on
server side and pass it to the Javascript so that JS knows which control to
insert options). It worked fine on the client side, but the server cannot
pick up the changes (new Items, and SelectedValue, SelectedIndex, etc. It
seems server is ignoring any change JavaScript makes. ) user made on the
client after user click "submit".
I have been stuck on this for two days, and please help!
Thanks!