Classic ASP page template for VS 2005

As you might know, VS 2005 does not provide file template for the classic ASP page. You can make one following instructions on MSDN.  Or just download the one I made from here

1. Download and place it in ...\Program Files\Microsoft Visual Studio 8\Common7\IDE\ItemTemplates\Web\VisualBasic\1033. You may want to also add it to ...\Web\CSharp\1033 and ..\Web\JSharp\1033.
2. Open command prompt window and go to ...\Program Files\Microsoft Visual Studio 8\Common7\IDE.
3. Run devenv /setup.
4. Run devenv normally.
5. Open/create a Web site, right click on the Web site node in the Solution Explorer and choose Add New Item... You should now see Active Server Page item in the list.

The template is for VBSsript. You can change the language in the page directive easily after the page is added. You don't have to close and reopen the file after you change the scripting language.

If you also want classic ASP in the File | New dialog:

1. Open file.
2. Extract ASPPage.asp into ...\Program Files\Microsoft Visual Studio 8\Common7\IDE\NewFileItems
3. Rename file to ASP Page.asp (note the space).
4. Run devenv /setup again as listed above.

Enjoy 🙂

Comments (11)

  1. Istvan says:

    Improved support for classic asp seems to be a very important topic. Many devolopers (like me)skipped 1.1 due to the high learning curve but low productivity gains.

    asp 2.0 / visual sudio 2005 solves the "low productivity-problem" – however we have thousands of lines with classic asp-code. We still need to maintain / debug / extend these projects – hopefully using Visual Studio 2005.

    Classic asp templates, snippets, debugging (especially Remote debugging) would make life much easier for thousands of developers. I would bet, that at least 40% of the developers using Visual studio still have to struggle with the "classic problems" of classic asp.

    Considering the BIG Pricetag on vs 2005, having someone who spends a week on improved asp 3.0 integration would be good idea.

  2. ivanchr says:

    This example is great for Classic ASP developers who want to add their own ASP templates to Microsoft Visual Studio 2005. The sample template shows that Intellisense and Syntax highlighting is available and works for Classic ASP editing.

    However, I would like to see an example of Intellisense working appropriately with an ASP include file. Using the VBScript language directive on both the include file and the main file where the include file is referenced results in a Directive error.

    I would also like to see an example of how to use code snippets when developing classic asp pages inside Visual Studio 2005. Mikhael, any help you could give us would be greatly appreciated!

  3. Shawn595 says:

    Is there a way to do what you described above in VS 2003?  I know that VS 2005 is the "New Hotness" but VS 2003 is the best I can do right now.


  4. Marco says:

    Hi, love your blog.

    Maybe you can help me with the folowing:

    I want to let .inc files behave the same as .asp (syntax highlighting/function bar).

    Can you do that the same way as you discribed above?

Skip to main content