Visual Studio - Pasting code into new project, compile errors

Posted on 2010-01-11
Medium Priority
Last Modified: 2013-11-26
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?
Question by:Cerixus

Accepted Solution

Naithan Arroyo earned 2000 total points
ID: 26286320
The Designer files? If you click Show all files in the solution explorer you can see them.

Author Comment

ID: 26286398
hmmm, I see.  Thanks.

Featured Post

[Webinar On Demand] Database Backup and Recovery

Does your company store data on premises, off site, in the cloud, or a combination of these? If you answered “yes”, you need a data backup recovery plan that fits each and every platform. Watch now as as Percona teaches us how to build agile data backup recovery plan.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Recently while returning home from work my wife (another .NET developer) was murmuring something. On further poking she said that she has been assigned a task where she has to serialize and deserialize objects and she is afraid of serialization. Wha…
This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…
Enter Foreign and Special Characters Enter characters you can't find on a keyboard using its ASCII code ... and learn how to make a handy reference for yourself using Excel ~ Use these codes in any Windows application! ... whether it is a Micr…
Suggested Courses

621 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question