Create classic asp project in Visual Studio 2010 f

2019-01-31 04:32发布

问题:

I have always developed on ASP.NET on 2.0 and higher .NET framework. I am trying to create a website in classic ASP from scratch using VS2010 and can't figure out how to do that.

Thanks

回答1:

  1. Create a new folder
  2. Open Visual Studio
  3. Choose "File" -> "Open web site"
  4. Go to the recently created folder
  5. Then right click -> Add New item
  6. Select "HTML File"
  7. Rename the file as .ASP
  8. Create a new web site or virtual directory in IIS and point to the folder
  9. Profit!

(alternatively to 8, you can use the new IIS Express that supports ASP Classic)



回答2:

As you probably know, classic asp has nothing to do with .NET. There is no type of project in VS 2010 (or any Visual Studion .NET) for classic asp sites. If you want to use VS2010 you can simply create text file with the extension .asp and start typing away. You can use any text editor for the job. My favorites are primal script (greatest intellisense I have found for classic asp) and Notepad++ You don´t have to compile anything since asp is scripting language and will be interpreted each time. So just start creating text files with asp endings and fire away.



回答3:

If you want to use something for classic ASP from/supported by Microsoft then you should consider Web Matrix which includes IIS Express and is a free download.

It does require ASP.net 4.0 if not already installed.



标签: asp-classic