I have a couple of web pages in a folder, and want to copy the folder to have a set of similar pages (with only a couple of changes).
However, when I simply copy and paste it in Visual Web Developer I get errors:
Type 'WebApplication1.Folder1.WebForm1' already defines a member called 'Page_Load' with the same parameter types
And:
The type 'WebApplication1.Folder1.WebForm1' already contains a definition for 'form1'
So how do I make a copy, where the namespace or class name isn't exactly the same - Is there a way to let Visual Studio do it for me? If not - What should I change to have it work but not break the code?
EDIT:
Here's what I did:
- New project
- Asp.net web application
- Added folder to project
- Added webform to folder
- Folder right-click copy
- Project right-click paste
- F5
- Got errors