How to run ASP file on VS 2010

  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

          1. Open 'Add/Remove Windows Components' found in 'Add/Remove Programs' in the 'Control Panel'.
          2. Place a tick in the check box for 'Internet Information Services (IIS)' leaving all the default installation settings intact.
          3. Right click "My Computer" -> "Manage" -> Expand "Services and Applications" -> Expand "Internet Information Services" -> right click on "default website".
          4. To add a new virtual directory right click on 'Default Website' and select 'New', followed by 'Virtual Directory', from the drop down list.

      9. Finally, browse the website from by browsing the .asp file in Computer management or browser.

原文地址:https://www.cnblogs.com/webglcn/p/2696466.html