Visual Studio - Pasting code into new project, compile errors
Posted on 2010-01-11
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?