Web application Sharing including ASP, ASP.NET 1.0 (C#) AND ASP.NET 2.0 (C#) MS SQL 2005 Server, Life, Travelling
Pages
▼
Monday, August 20, 2007
The name 'xxx' does not exist in the current context
When i build my ASP.NET (C#) project in Visual Studio 2005, i got this error message "The name 'Panel2' does not exist in the current context" displayed and the problem is in default.aspx. My code definately have no problem. After debuging and searching for while, i found out the that problem is cause by the back up copy from the same file (copy of default.aspx) that i forget to exclude from the project. The problem solved after i exclude the file from the project.
Hello i'm having the same problem, but cant solve it, i had a copy from an existing project, adding the file from it, in my slution y just have one file, y deleted the files, recreated, and still have the same problem. plz help!
Thanks for your post!
ReplyDeleteIt took me 2 days (not entirely, of course) to realize that I'd made a backup copy of my file.
Your post helped point out my problem.
DUH!!
Welcome Tomas. Happy if able to help to solve your problem :)
ReplyDeleteThank you, thank you, thank you!
ReplyDeleteSolved my problem!
Same here THX
ReplyDeleteThanks! I was getting mad with that error.
ReplyDeleteHello i'm having the same problem, but cant solve it, i had a copy from an existing project, adding the file from it, in my slution y just have one file, y deleted the files, recreated, and still have the same problem. plz help!
ReplyDeleteExcellent post. Thanks!!!!
ReplyDelete