Click here to Skip to main content
15,892,161 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hey All,

Ok really simple question that i cant seem to find the answer to. I am currently doing some classic ASP development in JScript. I have my basic functions and whatnot in an include file but the include file has the @Page directive in it so if i put one in each page i get
@Page Directive already specified ... bla bla bla

Really i just want to be able to use JScript inteli-sense and validation while coding and it's a real pain in the @$$ to have to add/remove the @Page from each page when deploying/developing.

So i pose this question, How do i change the default script language to JScript for VS2010 Classic ASP development.

TIA,
Adam
Posted

1 solution

Here is one thing to try:

To edit your Classic ASP files and still utilize syntax highlighting and intellisense. You need to associate the .asp file extension with the Web Form Editor. When doing this you are telling the IDE to treat .asp files the same as .aspx files, in turn sort of tricking the IDE in to giving you the syntax highlighting and intellisense that you want.

The steps in setting up the IDE are as follows:

1. Open Visual Studio
2. Goto the "Tools" menu and click "Options..."
3. Check the "Show all options" checkbox in the bottom left of the dialog box.
4. In the right pane expand "Text Editor" and select "File Extension"
5. Enter "ASP" extension in the "Extension" textbox
6. Select "Web Form Editor" in the Editor dropdown box
7. Click the "Add" button and click "Ok" on the dialog box.

Found it here:
http://social.msdn.microsoft.com/Forums/en/adodotnetdataset/thread/d7776d82-40c7-4618-b375-87fd4dc947be[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900