D
dickson.matt
Ok simple question (that I feel dumb for asking)....
I have created a user control (ascx page) that contains a dropdown
list.
The problem I am having is that when the postback occurs I can only
read the selected value from the dropdown list that was originally
selected. I can't read the current selected value of the control...
For example, the dropdown has values for Apples and Oranges. When the
page first populates Apples is selected. THe value is then changed to
Oranges on the form. When the postback occurs I check the selected
value of the usercontrol (I have exposed a property that returns the
SelectedValue of the dropdown) it shows Apples even though Oranges was
selected.
I know this is b/c I need to get the value from the Request.Form.Item
but if I read the value of Request.Form.Item ("mycontrol"), I get
nothing.
I have created a user control (ascx page) that contains a dropdown
list.
The problem I am having is that when the postback occurs I can only
read the selected value from the dropdown list that was originally
selected. I can't read the current selected value of the control...
For example, the dropdown has values for Apples and Oranges. When the
page first populates Apples is selected. THe value is then changed to
Oranges on the form. When the postback occurs I check the selected
value of the usercontrol (I have exposed a property that returns the
SelectedValue of the dropdown) it shows Apples even though Oranges was
selected.
I know this is b/c I need to get the value from the Request.Form.Item
but if I read the value of Request.Form.Item ("mycontrol"), I get
nothing.