M
MattB
I have a asp.net 1.1/vb application that has a page with a bunch of
dynamically added User Controls.
When I add the controls, I set the UserControl.EnableViewState to true.
For all my controls with TextBoxes, I can get the value back out of the
controls just fine.
One of my User Controls has some DropDownLists as well as a TextBox.
I get a value from the TextBox on postback, but not the DropDownLists.
Even if I see a value selected when the page displays, my
DropDownList.SelectedIndex is -1 when I submit the form and try to get
all the values back out. I double-checked the DropDownList controls
themselves, and they have EnableViewState = True too.
Any suggestions as to how to get the values back out from the
DropDownLists? Surely I'm overlooking something!
TIA!
Matt
dynamically added User Controls.
When I add the controls, I set the UserControl.EnableViewState to true.
For all my controls with TextBoxes, I can get the value back out of the
controls just fine.
One of my User Controls has some DropDownLists as well as a TextBox.
I get a value from the TextBox on postback, but not the DropDownLists.
Even if I see a value selected when the page displays, my
DropDownList.SelectedIndex is -1 when I submit the form and try to get
all the values back out. I double-checked the DropDownList controls
themselves, and they have EnableViewState = True too.
Any suggestions as to how to get the values back out from the
DropDownLists? Surely I'm overlooking something!
TIA!
Matt