C
Chris Szabo
Good morning everyone.
I've developed several user controls (ascx) each of which contain standard
WebControls. When I run the web application the user controls load correctly
and the web page is displayed in my browser.
In some cases, before the control is rendered, I need to enable or disable
some of the WebControls. So, in the OnPreRender event for the user control,
I perform some condition checking, and if necessary disable one or more
WebControls.
This is where I'm running into a problem. When I reference the control in
the code behind I get a missing reference exception at runtime. In the IDE
all the references seem intact.
Has anyone run into the problem before?
I've developed several user controls (ascx) each of which contain standard
WebControls. When I run the web application the user controls load correctly
and the web page is displayed in my browser.
In some cases, before the control is rendered, I need to enable or disable
some of the WebControls. So, in the OnPreRender event for the user control,
I perform some condition checking, and if necessary disable one or more
WebControls.
This is where I'm running into a problem. When I reference the control in
the code behind I get a missing reference exception at runtime. In the IDE
all the references seem intact.
Has anyone run into the problem before?