G
Guest
When I load a UserControl in dynamically using LoadControl(), I have a
problem where the values from input controls (like the textbox) will not be
populated into the control in the codebehind.
For example, if I type a string, eg "Hello" into the textbox,then submit, at
Page_Load() the Textbox.Text value is an empty string. However the value
"Hello" is sitting in the Forms collection of the Request object.
I don't have this problem if the UserControl is statically declared in an
aspx page using the <%@ Register %> directive.
Any ideas?
problem where the values from input controls (like the textbox) will not be
populated into the control in the codebehind.
For example, if I type a string, eg "Hello" into the textbox,then submit, at
Page_Load() the Textbox.Text value is an empty string. However the value
"Hello" is sitting in the Forms collection of the Request object.
I don't have this problem if the UserControl is statically declared in an
aspx page using the <%@ Register %> directive.
Any ideas?