Missing web control reference in user control

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?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,995
Messages
2,570,228
Members
46,816
Latest member
nipsseyhussle

Latest Threads

Top