4

I have a c# .net VS2010 web application that contains only classic asp files.

What I want to do is convert the web application to a web site to make it easier to manage the classic asp files.

How can I convert from web application to web site? I have researched google and found lots of examples going the other way.

amateur
  • 43,371
  • 65
  • 192
  • 320

1 Answers1

1

I don't think there's an automated way to do this. You could just create a new website in Visual Studio and copy your files from the web app into this new website. Be sure to go into each and every .aspx/.ascx file and edit the 'Codebehind' attribute so that it reads 'Codefile' (codebehind directive needs to be compiled and thus won't work in an ASP.NET website). You'll also need to delete the Designer/Designer.cs files.

Hopefully you don't have too many files so that this won't be too much of a PITA.

gws2
  • 599
  • 3
  • 8