Click here to Skip to main content
15,905,782 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi.
i have designed a form with some asp objects (textbox , radiobutton, ...),
and there has been and insert statement in page , but each tim i start to open the
Microsoft visual studio 2010 from begining , and open my solution ,whenevere i start to debug this error occures :
Error 101 The name 'personlCodeTextBox' does not exist in the current context

and any other items that i had created them befor can not be recognized by VS 2010 and i have to close VS and reopen it again and again with hope to recognize it.
i don't know what shall i do.
Posted
Comments
Kenneth Haugland 28-Jul-12 1:41am    
IT hard to tell form what information we get...
mohammad ehsan 28-Jul-12 1:50am    
but i didn't have this problem befor , i think there are some setting that has been affected and i am not aware.aren't there?

1 solution

Hi,
HTML @Page directive:
Check This:
1. CodeFile="ucSupportingDocuments.ascx.cs"
2. Inherits="UserControls_ucSupportingDocuments"


There could be two possible reasons:
1. First check for the CodeFile whether it is pointing to same code file or not.
2. Check for the class name, whether it is matching with the inherit attribute or not. The Inherits attribute should be same as your partial class name.



--Amit
 
Share this answer
 
Comments
mohammad ehsan 28-Jul-12 2:51am    
the CodeBehind="GeneralInfo.aspx.cs"
and CodeFile="~/GeneralInfo.aspx.designer.cs"

yet it doesn't work.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900