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
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions

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

Containers & Docker to Create a Powerful Team

Containers are an incredibly powerful technology that can provide you and/or your engineering team with huge productivity gains. Using containers, you can deploy, back up, replicate, and move apps and their dependencies quickly and easily.

Question has a verified solution.

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

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…
For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
Michael from AdRem Software outlines event notifications and Automatic Corrective Actions in network monitoring. Automatic Corrective Actions are scripts, which can automatically run upon discovery of a certain undesirable condition in your network.…
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
Suggested Courses

770 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