G
Guest
I have what may be a ViewState problem, but don't know how to deal with it:
I have 2 DropDownLists: ddlMed and ddlDosage. When the user selects a
medication from ddlMed, a javascript fires to populate ddlDosage with the
proper dosages for that medication. This works fine and the user is then
able to select a dosage and save the page.
The problem is that when the user hits the Save button, c# code processes
the form and saves the record and finds that the ddlDosage.SelectedValue is
empty, eventhough the user was able to see and select items from the
DropDownList.
I suspect the problem is related to the fact that the ddlDosage DropDownList
was populated on the client side and the server can't see it. Is that
correct? How can I make this work?
Thanks
/Ken
I have 2 DropDownLists: ddlMed and ddlDosage. When the user selects a
medication from ddlMed, a javascript fires to populate ddlDosage with the
proper dosages for that medication. This works fine and the user is then
able to select a dosage and save the page.
The problem is that when the user hits the Save button, c# code processes
the form and saves the record and finds that the ddlDosage.SelectedValue is
empty, eventhough the user was able to see and select items from the
DropDownList.
I suspect the problem is related to the fact that the ddlDosage DropDownList
was populated on the client side and the server can't see it. Is that
correct? How can I make this work?
Thanks
/Ken