How to copy an ASP.Net web form .aspx

The original page hook up can break

  1. Copy main file
  2. Rename file to remove “Copy of “
  3. View code
  4. Change Public Class name to the new name
  5. Show All Files
  6. Open the <file>.aspx.designer.vb
  7. Rename the class to the new name
    This may clear all errors. If not then continue
  8. If there is code behind then the controls will say “is already declared as..” or “Handle clause requires a WithEvents
  9. View Markup
  10. Change AutoEventWireup=”false” to “true”


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: