ASP.NET 2 Migration using SSW Code Auditor

Migrating to ASP.NET 2.0 from ASP.NET 1.1 is as simple as opening the ASP.NET web solution in Visual Studio 2005, but if the migration is done manually there are a couple of things to know before you start. "Master Pages", a new feature of Microsoft ASP.NET 2.0, enable you to apply the same page layout to multiple content pages in a Web application. Master Pages provide you with an easy method of creating a consistent look and feel for a Web site.

Migrating to ASP.NET 2.0 involves following steps:

  1. Make changes on attributes in Page directive. 
    1. Add 'MasterPageFile' attribute in Page directive.
    2. Make change attribute name 'CodeBehind' to 'CodeFile' in Page directive
    3. Add 'Title' attribute and then move HTML title into title attributes in the Page directive.
  2. Make changes on user controls
    1. Make change 'src' value for RandomTestimonial register tag to ~/Components/RandomTestimonial.ascx
    2. Remove old 'Register' directives for incTop and incBottom
  3. Remove asp comment lines
  4. Remove next lines up to inctop user control line.
  5. Add  'Content' tag
  6. Remove footer section
  7. Add closing Content tag


Figure : ASP.NET version 1.1 - Top section (Before Code Auditor Migration)



Figure : ASP.NET version 1.1 - Bottom section (Before Code Auditor Migration)



Figure : ASP.NET version 2 - Top section (After Code Auditor Migration)



Figure : ASP.NET version 2 - Bottom section (After Code Auditor Migration)



Figure : Code Auditor rules that we run

We have a program called SSW Code Auditor to do the whole migration process.