Link to home
Start Free TrialLog in
Avatar of Cerixus
CerixusFlag for United States of America

asked on

Visual Studio - Pasting code into new project, compile errors

So I created a new project because I want to clean my old one up. I created a new item (contentform for asp masterpage).  I pasted all the functions in the codebehind and pasted everything between the <content> tag.  Now the compiler says everything is "not declared".  

For instance, in the ASPX file, I have:

<asp:Label ID="lblBuzzWords" runat="server" Text="" Font-Size="Small"></asp:Label>

But in my error list I see "Name 'lblBuzzWords' is not declared."

And a reverse example, in my codebehind I have a function named "doServers", but when I reference it from my aspx file it says it is not declared.


So basically, what am I missing to copy/paste stuff from one project to another?
ASKER CERTIFIED SOLUTION
Avatar of Naithan Arroyo
Naithan Arroyo
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Cerixus

ASKER

hmmm, I see.  Thanks.