<p>So let's say you wanted to make a copy of a Web Form page within a .Net Project.  </p>

<p>Is there an easier way than:</p>

<ol>
<li>Copy Source Page</li>
<li>Page Source Page within project to get new page</li>
<li>Exclude Source Page </li>
<li>Rename code behind class for new page</li>
<li>Add Source Page Back</li>
</ol>

<p>Sometimes I miss something obvious is there a better way to do this?  I know the next question would be "Why are you copying code within a project instead for reusing it?"  Let's just say that's a secret;).  </p>

I do this:
Select the original ASPX file in solution explorer
Ctrl+C followed by Ctrl+V (quick copy paste)
Rename new ASPX file (let's say NewFile.aspx)
Rename code-behind class name to NewFile
Rename
```
Inherits
```
attribute of
```
Page
```
directive within HTML to end with 'NewFile'
(Optional) If you moved the page into a different folder, you'll need to update the Namespace references in the HTML's
```
Page
```
directive as well as in the code-behind.