Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Web Controls > Missing web control reference in user control

Reply
Thread Tools

Missing web control reference in user control

 
 
Chris Szabo
Guest
Posts: n/a
 
      06-08-2006
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?
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Nested user control causes build errors due to missing reference Sebastian Paul ASP .Net 2 07-27-2007 04:04 PM
reference.vb missing after web reference update cypress phill ASP .Net Web Services 0 03-29-2006 09:10 AM
Web User Control with GridView can derive new Web User Control? ABC ASP .Net 1 10-04-2005 12:29 PM
Web User Control with GridView can derive new Web User Control? ABC ASP .Net 0 10-03-2005 10:23 AM
ASP.NET 2.0: master pages and web user controls: reference to a non-shared member requires an object reference bminder ASP .Net 0 06-24-2005 12:22 AM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57