'The name 'controlname' does not exist in the current context'

T

Terry

Hello,


VS 2008 SP1, ASP.NET 3.5 , C#

I have problem adding controls to my webpage default.aspx. There is a
group of controls that just refuse to be used with message:
'The name 'controlname' does not exist in the current context'

I researched a web and found that similar problem exists around but
somehow I cannot get solution.

Interesting thing is that if do run debugging and ignore error
messages whole thing actually works fine. On the other hand I am
unable to publish site because of this.

Another intersting notice: I was playing with that a little and here
is situation:

Control1
Control2
Control3
....etc

They ALL have that error message: 'The name 'controlname' does not
exist in the current context'

But when I add another one like this:

NewControl
Control1
Control2
Control3
....etc

Now NewControl ONLY have that error, others DO NOT !

Anybody have any idea or advice on this problem ??

Thank you

Terry
 

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,744
Messages
2,569,484
Members
44,905
Latest member
Kristy_Poole

Latest Threads

Top