R
Ralph
Hi,
I have been experimenting creating a User Control and overriding its Render
method so that I have no reliance on an external ascx file and can package
this control into a dll.
I dynamically create my controls in Page_Load() and everything works fine
while this code is part of my main application dll.
My problem occurs when I move the code for the User control from my
application dll into my library dll.
Within my User control I have a Hidden HTML input control. I can access this
control and its value without any problems when the User control is part of
my application dll, when I move the User Control into the library dll this
control doesn't keep its value, it is like it loses its ViewState or
something.
I was wondering if there's something that I need to do in order to allow me
to package the User Control into a dll other than my main web application
dll, so that all the controls maintain their state.
thanks
Ralph
I have been experimenting creating a User Control and overriding its Render
method so that I have no reliance on an external ascx file and can package
this control into a dll.
I dynamically create my controls in Page_Load() and everything works fine
while this code is part of my main application dll.
My problem occurs when I move the code for the User control from my
application dll into my library dll.
Within my User control I have a Hidden HTML input control. I can access this
control and its value without any problems when the User control is part of
my application dll, when I move the User Control into the library dll this
control doesn't keep its value, it is like it loses its ViewState or
something.
I was wondering if there's something that I need to do in order to allow me
to package the User Control into a dll other than my main web application
dll, so that all the controls maintain their state.
thanks
Ralph