更改ASP页面的默认脚本语言 [英] Change Default Script Language For ASP Pages

查看:137
本文介绍了更改ASP页面的默认脚本语言的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

好吧,我似乎无法找到答案的非常简单的问题.我目前正在用JScript做一些经典的ASP开发.我在包含文件中有基本功能,但没有,但是包含文件中有@Page指令,因此,如果我在每个页面中放一个,我就会得到

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


真的,我只想能够在编码时使用JScript智能感知和验证,而在部署/开发时必须从每个页面添加/删除@Page的@ $$实在是一件痛苦的事.

因此,我提出了一个问题:如何为VS2010 Classic ASP开发将默认脚本语言更改为JScript.

TIA,
Adam


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

推荐答案

在部署/开发时必须从每个页面添加/删除@Page.

因此,我提出了一个问题:如何为VS2010 Classic ASP开发将默认脚本语言更改为JScript.

TIA,
亚当
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


这里是一件事:

要编辑您的Classic ASP文件,并且仍然使用语法突出显示和智能感知.您需要将.asp文件扩展名与Web表单编辑器关联.执行此操作时,您要告诉IDE将.asp文件与.aspx文件一样对待,进而诱骗IDE以便为您提供所需的语法突出显示和智能提示.

设置IDE的步骤如下:

1.打开Visual Studio
2.转到工具"菜单,然后单击选项..."
3.选中对话框左下方的显示所有选项"复选框.
4.在右窗格中,展开文本编辑器",然后选择文件扩展名"
5.在扩展名"文本框中输入"ASP"扩展名
6.在编辑器"下拉框中选择"Web表单编辑器"
7.单击添加"按钮,然后在对话框上单击确定".

在这里找到它:
http://social.msdn.microsoft.com/Forums/zh/adodotnetdataset/thread/d7776d82-40c7-4618-b375-87fd4dc947be [
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[^]


这篇关于更改ASP页面的默认脚本语言的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆