Hidden textbox not display assigned text on unhide
Posted on 2009-12-22
I have a simple web form designed, allowing for data entry, along with two buttons, "Submit" and "Cancel". There's a hidden panel, and a textbox within that hidden panel.
I have a ModalPopupExtender wrapped around the Submit button. The MPE is supposed to display the hidden panel (which holds the textbox) during the Submit button's onClick event.
All of this works very well, but when I assign the data that was entered to the hidden panel's textbox, the textbox does not display anything when the MPE is displayed. Quick overview..
1- Data is entered
2 - User hits "Submit"
3 - Submit onClick Event.
a - Data entered is assigned to variables.
b - Hidden textbox is assigned the value of those variables (textbox.text=variables)
c - MPE.Show() (which correctly displays hidden panel and textbox, just no actual text)
This all works A-OK, MPE displays, shows the panel and the textbox just fine, but the textbox itself doesn't display the assigned text.
During the onClick event for the Submit button, I've tried setting the hidden textbox and hidden panel to Visible=True before I assign text to the textbox, still no luck.
Suggestions? I'm not a developer by trade, so I'm guessing this might be something simple on my end.