How to copy an ASP.Net web form .aspx
08-May-1313 Leave a comment
The original page hook up can break
- Copy main file
- Rename file to remove “Copy of “
- View code
- Change Public Class name to the new name
- Show All Files
- Open the <file>.aspx.designer.vb
- Rename the class to the new name
This may clear all errors. If not then continue - If there is code behind then the controls will say “is already declared as..” or “Handle clause requires a WithEvents
- View Markup
- Change AutoEventWireup=”false” to “true”