If you copy a page in Visual Studio and rename it, it will automatically change the Codebehind
attribute in the <%@ Page
declaration on the .aspx
markup.
But what it won't do is change the name of the class in the codebehind file, or the class that the Inherits
attribute on the declaration points to.
Firstly, change the Inherits
to your new class name - this should automatically change the designer file to use the same class name.
Then change the class definition in the code-behind file.