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 ASPPage.zip 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 ASPPage.zip 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
Anonymous
July 23, 2005
The comment has been removedAnonymous
January 30, 2006
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!Anonymous
February 28, 2006
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.
Thanks!Anonymous
June 08, 2006
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?Anonymous
December 21, 2007
PingBack from http://bobondevelopment.com/2007/12/21/a-reason-to-keep-a-project-on-visual-studio-2003-in-2007/Anonymous
January 21, 2009
PingBack from http://www.keyongtech.com/2395770-vs-2005-for-standard-aspAnonymous
April 17, 2009
PingBack from http://blog.PlatformConcepts.com/2008/04/14/using-vs-2005-for-classic-asp-30-projects/Anonymous
May 26, 2009
PingBack from http://webdevelopment.mobiforumz.com/2006/09/24/classic-asp-vs-2005/