关键词不能为空

当前您在: 主页 > 英语 >

ASP的外文翻译

作者:高考题库网
来源:https://www.bjmy2z.cn/gaokao
2020-10-24 10:47
tags:学习外语的网站

lake是什么意思-生活中的化学

2020年10月24日发(作者:冷谦)


译 文

内容
介绍
什么是ASP
ASP怎样工作
图书目录
介绍
ASP有很多有用的信息被用在这个网站 或者其它网站。如果你有大量
的时间去搜索这些信息你会发现你的大部分问题的答案。但是如果你
想找出什么工具能够调试ASP或者怎么样能够找出其中的错误那你
就要做更深一层的探索了。这篇文 章提供了一种简单的方法去发现属
于ASP的信息,包括对ASP的一个简短定义,ASP是怎样工作的 ,一
张按照字母排序的列表和有关ASP的一些讯息。在A—Z的列表中,
你会看到更多详细信 息的简短的描述和恰当的联系(当那些信息有用
的时候。)这篇文章意味着一个“活”的文档。这就意味 着我随时准
备用新的信息更新它并且移除那些不再使用的信息。如果你是一个
ASP开发者并且 你有更新的“有趣”的信息那就把它发给我。如果我
在这发表它,你将会得到荣誉和其它开发者永久的感 激。

什么是ASP
ASP是一个设计环境,它提供了组织HTML和编写能力并 且提供用来


构造有用的因特网应用程序的程序,这些应用程序运行在你的服务器
上。如果你已经制作了包括HTML,正本和一些有用的程序那么你就
可以用ASP把这些项目结合在一 起。你可以通过在你的HTML页中加
入编写命令来为你的应用程序构造一个HTML界面并且你可以把 你的
商务理念加入倒你的程序中去。这些程序从其它程序或者正本中得
来。

ASP是怎样工作的
当你把ASP收编到你的网站里那么下面就是所发生的事情:
1. 当用户打开了有扩展的.asp的错误网页那么用户就会停下一
个万维网站(就像微软的开发商网络)
2.
3.
4.
浏览器从网络服务器上要求得到ASP文件。
服务器方面的编写从运行ASP开始。
ASP按顺序处理所要求的文件(从上到下),执行文档内任何
编写命令并且产生一个HTML WEB页面。
5. 这个WEB页面被送到浏览器。
因为你的文本在服务器上运行,这个W EB服务器可以处理所有的
进程与此同时标准的HTML产生并且被送到服务器。这就意味着你的
WEB页面只罗列了你的WEB服务器所支持东西。另一个把你的文本放
在服务器的好处就是用户在最 初的文本和代码中看不到源代码。相反
的用户看到的只是产生的HTML和没有HTML的成分,就像被 显示在页
面上的XML。



从A到Z的ASP
这部分 包括一张项目列表和帮助你理解ASP的一些信息。它们是按
照字母的顺序被编入的。截取令你感兴趣的 话题或者单击字母表中的
字母就可以跳到令你感兴趣的话题中去了。我剽窃了别人的成果,我
的 意思是我把从别的来源得来的信息和一些定义编辑了一下,这些来
源包括技术文章(列举在参考文献下) ,基础知识文章和微软公司beta
版本IIS5.0(我很幸运)。
A B C D E F G I J
L M O P Q R S T
V W X

ADO
ADO包括一 个基于OLE—DB数据源程序模型。它是一个ASP用到的数
据库模型;然而ASP能够用其它通道机 制。ADO支持一下可安装对象,
这些对象经常被用在ASP文档中:命令、连接、列表、扫描和错误。
你可以在以下网站找到更多关于
http:aado

应用程序
ASP不仅仅用作调试。当用到ASP作为一个解决方案,以一个应用程
序作为你的解决方案而不是仅仅 设计个以独立的ASP页面。当涉及对
ADO得信息。


象时,那么无论你能买到 项目或者为自己建造对象,最好先想想你想
要完成什么并且决定你需要什么。

阻碍
我把在设计中遇到的阻碍(数据库、网卡或者网络连接)定义为使用
工具的能力:WCAT,N etMon和计数器功能。为了改善服务器功能需
要总体观察一下整个系统所有部位的潜在阻碍,包括硬 件构造和软件
设置。在这方面如果你衡量了对象的尺度那么你就会知道在哪些方面
需要做工作。

浏览器连接
在IIS 4.0用到IsClientConnected的回应来 确定浏览器是否还连
着。如果浏览器没有连接好,你可以通过停止ASP页面的进程来保护
CP U的循环。以下网站涉及到基础知识文章Use IsClientConnected
to Check if Browser is Connected。

缓冲器
在I IS4.0中缓冲器0只有被打开它才会处于活动状态。在IIS5.0中
缓冲器在没有特别指定的情况 下活动着。你应该缓和你的ASP文档这
样你才能发送一个WEB页。如果文档因为发生错误而需要处理 或者用
户没有恰当的安全证明那么这有可能发生。如果这个发生了并且你正
在用IIS5.0, 你可以把用户转移到另一个页面来使用服务器。转移


或者清除缓冲器(用到回应的清除方 法)把不同的内容传给用户。

C++
如果你正在制作页面水平的成分,你可以用 script服务器、VB、VJ
++、VC++。如果你正在编写应用程序的某些部分或者学习阶段的
某些东西那么我们推荐你用C++或者Java来编写,那样你就可以
一气呵成的编写完你的程 序了。VB只能把一个部分连接在一起。你
可以在threading中看到有关这部分的更详细的能容 。

缓存
如果你的程序通过代理服务器将网页传给顾客那么这个代理服务器
将存储这些页面并且很快地将这些页面传给顾客。这样就减轻了网络
和Web服务器的负担。为了防止 浏览器存储ASP页面我们设置了一系
列负数作为失效的回答。这就迫使被存储的网页立即失效。如果你 设
置了0应答并且你的浏览器的时钟被拨后了几分钟,那么这个页面不
会立即失效。如果你的W eb网站里的内容不是经常失效比如图像那么
以后再设置失效时间。这将大大提高你刷新或者下载一个页 面的速
度。通过pragma:nocache的代理缓存已经被IIS启动了,所以你不
必在 报头上设置它。更多有关缓存的信息能够在Got Any Cache?上
看到。

用户方面的正本


通过提供给客户端和服务器端的文本来分配你的Web网站的 工作。看
客户端和服务器端方面的目的。

COM的调试
如果你编写一个 COM对象并且通过ASP服务器使用它。编写对象,你
没有返回到你的运行环境并且在没有重启IIS 和WEB服务器的基础上
重编COM DLL。或者是COM DLL将被锁住。重启这些服务就要做以下
工作:
1. 输入net stop iisadmin y.命令。请注意这将停止IIS的父
服务和IIS的管理员。这个命令页停止了F TP和其它IIS管理员
的子系统服务。如果只输入net start w3svc命令
不会被卸载。这将
2. 输入net start w3svc命令,这将重启IIS管理员和Web服务
器。
3. 在第一步骤以后你将重编所 有的部分。一旦你设计到从你的
DLL上下载的东西,你就必须在成功建立程序前重复第一步。

成分
用程序把你的商务理念压缩到你的ASP应用程序中去。你可以自己编
写你的程序或者买下别人的。一旦你有了一个程序那么无论你什么时
候需要它你都可以重复的使用它。 用C++或者Java来完善你的程
序。因为VB不是以一个整体出现的所以你不能在应用程序的范围内


使用VB部分。如果你设计了自己的程序确保你设计的程序是无状态
的(就是说 你要定义的是得到参数的方法而不是调用一种没有参数的
方法。
无状态程序更灵活更具有重复 使用性。另外,如果你在你的有100行
左右邻近的正本中有一些领域那么考虑一下把这个正本转化为一 个
服务器正本。在MSDN图书馆的服务器领域的活动服务器程序中你可
以发现更多关于制作程 序的信息。
ASP中用到的第三程序的综合列表可以在一下网站被找到。ASP
Component Catalog.

链接
把链接加入到你最适当的 表现中去。通过加入链接你的你的资源将被
分配的更加有效力。为了支持复式的登录上网,提供一个链接 作为一
个只读通道提供另一个链接作为读写通道。一般来说在学习阶段避开
加入ADO连接。O DBC(3.0版本或者更新的版本)自动把链接加入到
你的程序中,OLE-DB提供了基本加入。

小信息管理
ASP用小信息来存储初级的标识符(ASP Session ID )。对于把小信
息清除的机器小信息管理工具可以被用来清除小信息并且可以把信


息放在URL中去。这样在没有实际的散发出小信息的情况下激活了小
信息的使用。要想知道更多的信 息可以查看以下网站Simulating
Cookies with the Cookie Munger.

CPU
为测量而设计,强调在100%CPU的情况下运行你的 程序用来决定怎
样能最好的分配你的资源。用WCAT或者一个第三部分的工具就像
Mercu ry's LoadRunner来调整你的作平。

数据通道程序
到Improving the Performance of Data Access Components in IIS
4.0去查找如何改善你作品的更详细的技术资料。

数据库
用ADO为你的WEB网页部分增加数据通道。无论是链接还是没有链接,
A DO可以被用来制作小的元素这些元素能够被链接到任何以数据源作
为依据的OLE-DB。这包括了空 白表格、数据库、E-Mail向导。

调试


有很多工具都可以用 来调试,包括微软公司的文本调试程序。这个工
具能让你在在网上的任意时刻运行你的服务器方面的文本 。监视你变
量的值、特征或者在执行中的数组元素和程序的痕迹。

重要提示:一旦 你的Web网站完成了调试,不要忘了关掉你的活动服
务器的调试程序。这将增加表现力。

词典
词典能够帮你查找并且迅速存储你的任意的关键数据。词典能够给你
一个迅速找 到数组中所要的关键字而不用想是否内存中存有我想要
的关键字。作为替代,你可以用一个关键字而不用 去想它被存在那个
数组中。

链接中断的记录设置
链接中断记录设置表示 你能在切断与产生记录设置的数据的连接之
后能够看到记录的数据。你可以制作一个运行着的链接中断的 ADO记
录设置,这记录设置的光标位置是加在客户端的并且这个记录设置的
活动链接特征是设 置为空或者是没有。这样你可以把记录设置加入到
ASP的程序状态中去并且用记录设置的无性复制个体 方法去共享而且


还可以从你的ASP文档中加入记录设置。这样你就可以不用RDS或者
DCM(或它们两种结合)就可以把记录设置加入到远程客户端中去了。
你可以从以下网站找到 更多的详细信息HOWTO: Getting ADO
Disconnected Recordsets in VBAC++Java and INFO: Disconnected
Recordsets with ADO or RDS 。

错误控制
你可以用到ASP错误对象来得到有关ASP文档中出现的IIS5.0的错
误状态信息。ASP错误 对象被服务器返回。得到最后错误的方法是如
果这个错误状态产生了反抗并且你用的是VBScript 那么就用OnErr。
如果用的是Jscript那么就试试看这个方法。更多有关错误处理的信
息能在微软的Jscript5.0版本中找到。

流量控制
流量控制是指在你 的ASP应用程序中处理流量的能力。流量是通过回
应方法来控制的并且两个新的服务器方法(专用于I IS 5.0)。改变
方向导致了部分数据的丢失。
如果错误被发现那么响应将会使ASP停 止工作。你不需要在得到响应
以后用到这个方法。转移方法就像响应一样。除了这项工作已经在服


务器上做好了要不然公布的数据都会丢失。执行方法加入到一个嵌入
式的ASP呼叫中 去了并且在错误出现前返回执行程序。

文档系统
文档系统对象在文档中堵塞了。 如果你在运行高容量的Web网站,不
要用文档系统对象因为你的作品将会因为通过一个单一的文档而被
瓦解。如果你正在使用复杂的文档,这文档不能在同一时间一起通过,
那么文档系统对象的使用 将不会导致你作品的成功。


文档是一个随意的文档你可以指定事件的过程并且可 以
宣布在应用程序范围内的对象。它不是一个令人满意的展现在人们面
前的文档;它存储了事件 信息和能够被应用程序使用的全球通用的对
像。这中文档就被命名为并且它必须被存储在应用程序
的根文件夹中。一个应用程序只能有一个文档。这个文
档在.里下载了一个文档加入到应用程序中而不 是用ASP
文档系统来读一个页面的文档。
胶合


把有胶合能力和有 程序的ASP用到商务逻辑上。如果你有一百条或者
更多的连续的脚本那么用服务器脚本把它转换成一部 分。(不过要记
住服务器脚本有和VB程序一样的限制性的东西。
下载
下载工具能被用来调整你的网点。这种工具在任何的因特网服务包括
HTTP, SMTP, POP3, and LDAP都可以有简单邮件传输协议,可以在
网点上做交通的模拟试验。更多详情 可在
http:.上找
到。
国际化
如果你提供将在其他美利坚合众国的国家被看的网点,你能在<% %>
定界符的范围内用代码 页签条来指定适当的代码页替代。另外你也可
以用层,想知道更多有关信息请看以下网页
htt p:kshopservernextgennextgen .a
sp.
除了代码页外你也 可以用LCID来决定用户是用什么形式来表现她的
页面的。更多有关LCID的信息可以在IMult iLanguage Reference.
被找到。
隔离


你可以 把IIS,ASP和其它程序的过程隔离开来,这样他们就可以各
自发挥自己的特长表现的更好了。对把 这些放入不同的过程的毁坏是
被碰撞的十字形-过程的通信演出。你能把IIS,ASP和你的程序放入
一个过程。这是最快最好的方法了,不过要是你的程序走下坡路那么
你最好把IIS跟ASP结 合起来。你可以把你的IIS放在一个过程中,
而把你的ASP和其它程序放在另一个过程中,这样就可 以保证如果你
的ASP和其它程序被毁坏但你的IIS却不会被毁坏了。你可以把ASP
和II S放在一个过程中而把其它程序放在另一个过程中,这样比前面
讲到使它们间的过程可以通讯的那种形式 要慢。然而这样就把ASP,
IIS跟其它部分彻底的绝缘了。最慢但是最安全的方法就是把ASP,< br>IIS和其它部分各自放在自己的一个隔离的过程中。一旦一个坏掉了
那么其它的将不会受到损坏 ,但是运行的速度实在是非常非常慢。这
是测试你系统的一个很好的方法。
程序构造
IIS, ASP和 程序在一个过程中
IIS 在一个过程中, ASP 和程序在另一个过程中
IIS 和 ASP 在一个过程中, 程序在另一个过程
保护
1
2
3
速度
4
3
2
1 IIS 在一个过程中, ASP在一个过成中, 程序在一个4
过程中
JAVA


用JAVA(或者C++)来写程序。Java是一个功能很强大的 编程语
言,用它编写的程序能够很好的贯穿。
请求联机
你可以打开URI_Que ry来查看ASP的链接错误的记录。这不是能轻而
易举的打开它的,随便打开会出现错误的。打开它有 一定的技巧:
1. 选择一个网站或者一个站点,打开它们的特性列表。
2. 如果记录不可取那就不能联机,并且选择扩展名为W3C的格式化
文件。
3. 单击特性。
4.伸出来的特性列表中选择你想要链接的区域(在这个列子中是指
URI_Query)。在 没有特别指定的情况下,时间,默认的IP地址,路
径,URI Stem和HTTP状态都是能够被使用的。
4. 单击应用。
你也可以链接到Windows NT ?服务器事件链接;然而链接到Windows
NT ?服务器事件上去并不是一个好的方法如果你的网页上有好多的
错误或者在调试的模式下因为在这两种情 况下你可以很快的替换链
接。使用Windows NT自带的运行监视器你能够链接得到不同种类的< br>错误条件,包括多少ASP的请求产生了错误,在运行脚本的时候多少
错误出现了。


邮件
用CDO作为Windows NT 的服务器。CDO是作为交换使用 的CDO的轻
量版本。它在SMTP或者交换上工作。如果你用到另一种邮件协议,
那么就用第 三方的程序。一个综合的列表能够在以下网站被看到。
http:kshopservercomponentscatalog
.asp.
签条
如果你设计到没有被用到的实体用 签条屏蔽掉它 们。用服
务器构造实体能够比较快的构造好实体。如果你以后没有使用该实体
那么你就会以浪费 资源告终。




原文说明

原文说明的内容是:


题名:ASP from A to Z
作者:Nancy Winnick Cluts
来源:网络

MSDN Home
>
MSDN Library
>
Web Development
>
Server Technologies
>
Active Server Pages
>

Page Options




ASP from A to Z

Nancy Winnick Cluts
Developer Technology Engineer
Microsoft Corporation
October 22, 1998
Contents
Introduction

What ASP Is

How ASP Works

ASP from A to Z

Bibliography
Introduction
There's lots of helpful information about Active Server Pages (ASP) available on this site and other sites. If you have
plenty of time to search for the information, you can find answers to most of your questions. But if you want to find out
what tools you can use to debug ASP or how to handle errors, you need to do some digging. This article provides an
easy way to find information that pertains to ASP, including a short definition of what ASP is, how ASP works, and an
alphabetical list of terms and tips that relate to ASP. In the A-to-Z list, you will see a brief description as well as
pertinent links to more detailed information (when that information is available). This article is meant to be a
document. That means that I plan on updating it with new tips and removing tips that no longer apply. If you are an
ASP developer and have a
of throngs of other ASP developers.


What ASP Is
Active Server Pages is a programming environment that provides the ability to combine HTML, scripting, and
components to create powerful Internet applications that run on your server. If you are already creating Web sites that
combine HTML, scripting, and some reusable components, you can use ASP to glue these items together. You can
create an HTML interface for your application by adding script commands to your HTML pages and you can encapsulate
your business logic into reusable components. These components can be called from script or other components.
How ASP Works
When you incorporate ASP into your Web site, here's what happens:
1.
2.
3.
4.
The user brings up a Web site (like MSDN Library) where the default page has the extension .asp.
The browser requests the ASP file from the Web server.
The server-side script begins to run with ASP.
ASP processes the requested file sequentially (top-down), executes any script commands contained in the
file, and produces an HTML Web page.
5. The Web page is sent to the browser.
Because your script runs on the server, the Web server does all of the processing and standard HTML pages can be
generated and sent to the browser. This means that your Web pages are limited only by what your Web server
supports. Another benefit of having your script reside on the server is that the user cannot
script and code. Instead, the user sees only the generated HTML as well as non- HTML content, such as XML, on the
pages that are being viewed.
ASP from A to Z
This section contains a list of terms and tips to help you understand ASP. They are listed in alphabetical order. Scroll
down to the topic that interests you or click the letter in the alphabet below to jump down to the section containing the
topic. I cribbed, er, I mean, compiled these tips and definitions from a number of sources, including technical articles
(listed in the bibliography below), Knowledge Base articles, and a beta version of the Microsoft? Internet Information
Server (IIS) 5.0 documentation (I'm so lucky!).
A B C D E F G I J L M O P Q R S T V W X
ADO
Active Data Objects (ADO) provides a programming model for an OLE-DB data source. It is the database model that
ASP uses; however, ASP can use other database access mechanisms. ADO supports the following installable objects,
which are often used in ASP files: Command, Connection, Recordset, Field, and Error. Refer to the ADO Web site


at http:aado for more information than you can shake a stick at.
Applications
ASP is not just for prototyping. When using ASP as a solution, design your solution as an application instead of
designing stand-alone ASP pages. As far as objects are concerned, it's best to take a look at what you need to
accomplish and decide what you need, then whether you can buy the objects or will need to create the objects yourself.
Take into consideration caching, scalability, reusability, security, and consistency.
Bottlenecks
Identify your bottlenecks (that is, the database, network card, or network connection) using the tools available: WCAT,
NetMon, and performance counters. To improve server performance, take a look at all parts of the system for potential
bottlenecks, including hardware configuration and software settings. This way, if you are ever asked to scale the
project larger, you will know where the work needs to be done.
Browser Connection
In IIS 4.0, use the ntConnected property to determine if the browser is still connected. If the
browser is not connected, you can conserve CPU cycles by ceasing the processing of the ASP page. Refer to the
Knowledge Base article Use IsClientConnected to Check if Browser is Connected.
Buffering
Turn buffering ON. By default it is OFF in IIS 4.0; in IIS 5.0, buffering is ON by default. You should buffer your ASP files
so that you can abort sending a Web page. This might happen if the script being processed runs into a problem or if a
user does not have appropriate security credentials. If this happens, and if you are using IIS 5.0, you can transfer the
user to another page using er, or clear the buffer (using the Clear method of the Response object) to
send different content to the user.
C++
If you are creating page- level components, you can use server scriptlets, Visual Basic?, Visual J++?, and Visual
C++?. If you are writing components that will be in application or session state, we recommend that you write them
in C++ or Java so you can create them as both-threaded. Visual Basic is apartment-threaded. See the section below
on threading for more details.
Caching
If your application sends pages to the client via a proxy server, the proxy server may cache pages to return them more


quickly to the client. This reduces the load on the network and the Web server. To prevent a browser from caching ASP
pages, set s to some negative number. This will force the cached pages to expire immediately. If you
set s to 0, and if your browser clock is behind by a few minutes, the page won't expire immediately.
If your Web site contains objects that do not expire often, such as images, set the expiration to some time in the future.
This will greatly increase the speed at which a page is refreshed or downloaded. Proxy caching via pragma:nocache
is already done for you by IIS, so you don't have to set this in your headers. More information about caching can be
found in Got Any Cache?
Client-Side Scripts
Distribute the work on your Web site by providing script on both the client and the server. See Client-Side and
Server-Side Objects.
COM Object Debugging
If you create a COM object and use it through ASP with Object, you cannot go back into your
development environment and recompile the COM DLL without restarting the IIS Admin and W3SVC (Web server)
service. Otherwise, the COM DLL will be locked. To restart these services, do the following:
1. At a command prompt, type net stop iisadmin y. Please note that this will shut down IIS' parent service,
IIS Admin. This will also shut down FTP and other services that are children of IIS Admin. If you type only net stop
w3svc, will not be unloaded.
2. At a command prompt, type net start w3svc. This will restart IIS Admin and the W3SVC service (Web
server).
3. You may recompile at any point after Step 1. Once you refer to an object that loads your DLL, you must repeat
Step 1 before building the component successfully.
Components
Use components to encapsulate the business logic in your ASP applications. You can create your own components or
buy them
components using C++ or Java. Because Visual Basic is not marked as both-threaded, you cannot use Visual Basic
components within application scope. If you design your own components, be sure to design components that are
stateless (that is, the methods you define take parameters, rather than having a script set properties then call the
method without the parameters).
Stateless components are far more flexible and reusable. In addition, if you have areas in your script where you have
more than 100 lines of contiguous script, consider turning that script into a server scriptlet. More information about
creating components can be found in the Active Server Components section of the Server area of the MSDN Library. A
comprehensive list of third-party components available for ASP can be found in the ASP Component Catalog.


Connections
Pool your connections for optimal performance. By pooling your connections, your resources are allocated more
efficiently. For support of multiple logons, provide one connection for read- only access and one connection for
readwrite access. In general, avoid putting ADO connections in session state. ODBC (version 3.0 and later)
automatically does connection pooling for you, and OLE-DB provides session pooling.
Cookie Munger
ASP uses cookies to store the session identifier (ASP SessionID). For machines that have cookies turned off, the
Cookie Munger tool can be used to strip out cookies and put the information in a URL. This enables the use of
without actually sending out cookies. For more information, see Simulating Cookies with the Cookie Munger.
CPU
Design for scalability. Stress your ASP applications at 100% CPU to determine how to best allocate your resources. Use
WCAT or a third-party tool such as Mercury's LoadRunner to tune your performance.
Data Access Components
Read Improving the Performance of Data Access Components in IIS 4.0 for a detailed explanation of the techniques
that you can use to improve performance.
Database
Use ADO for adding database access to your Web pages via components. ADO can be used to create small components
that connect to any OLE-DB compliant data source, whether it's relational or non-relational. This includes
spreadsheets, databases, or e-mail directories.
Debugging
There are many tools available for debugging, including the Microsoft Script Debugger. The Script Debugger lets you
run your server-side scripts one line at a time, monitor the value of variables, properties, or array elements during
execution, and trace procedures.
Important:

Once you have finished debugging your Web site, don't forget to turn off debugging
on your live servers. This will increase performance.


Dictionary Object
The Dictionary object enables you to look up and store arbitrary key-data pairs rapidly. The Dictionary object gives
you access to items in the array by key, so it is faster to find things that aren't stored contiguously in memory. Instead,
you use a key rather than having to know where in the array the object is stored.
Disconnected Recordsets
Disconnecting a Recordset means you can view the Recordset's data after severing the connection to the data store
that generated the Recordset. You can create a disconnected ADO Recordset in-process with a Recordset whose
CursorLocation property is adUseClient and whose ActiveConnection property is set to NULLNothing. You can
then put the Recordset into ASP application state and use the Recordset Clone method to share and access the
Recordset in your ASP files. You can then pass this Recordset to a remote client using either RDS or DCOM (or both
together). Read the Knowledge Base articles HOWTO: Getting ADO Disconnected Recordsets in VBAC++Java and
INFO: Disconnected Recordsets with ADO or RDS for detailed information.
Error Handling
You can use the ASPError object to obtain information about an IIS 5.0 error condition that has occurred in an ASP file.
The ASPError object is returned by the tError method. If the error condition generates an exception
and you are using VBScript, use OnErr. In JScript?, use the try???…catch method. Detailed information about error
handling can be found in the article Microsoft JScript Version 5.0 Adds Exception Handling, by Michael Edwards.
Flow Control
Flow control is the ability to set the flow of your ASP application. Flow is controlled through Response methods and two
new Server methods (for IIS 5.0). Using ct causes posted data to be lost. The
method causes ASP to stop when an error is found. You do not need to call this method after calling
ct. The er method is the same as ct, except that the work is done
on the server and posted data is not lost. The e method will flow into a nested ASP call and return
execution to where you were before the error occurred.
FileSystem Object
The FileSystem object blocks on files. If you are running a high- volume Web site, don't use the FileSystem object
because the performance of accessing a single file will degrade. If you are using multiple files that are not being
accessed at the same time, use of the FileSystem object will not result in a performance hit.


The file is an optional file in which you can specify event procedures and declare objects that have session
or application scope. It is not a content file displayed to the users; it stores event information and objects used globally
by the application. This file must be named and must be stored in the root directory of the application. An
application can have only one file. Instead of using the ASP FileSystem object to read files on a page, load
the file(s) into an Application level array in .
Glue
Use ASP for the glue and components for the business logic. If you have 100 or more lines of consecutive script, turn
it into a component using server scriptlets (bearing in mind that server scriptlets have the same limitations as Visual
Basic components).
InetLoad
The InetLoad tool can be used to tune your Web site. This tool generates customizable loads on various Internet
services, over a broad range of Internet protocols, including HTTP, SMTP, POP3, and LDAP. You can use this tool to
simulate traffic on your Web site. InetLoad is available at http:.
See also WCATW and Mercury LoadRunner for tuning tools.
Internationalization
If you are providing a Web site that will be viewed in countries other than the United States, you can use the CODEPAGE
tag within the <% %> delimiters to specify the proper code page. Alternatively, you can use the ge
property. Read all about it at http:. In addition to
CODEPAGE, you can also use the Local Language Identifier (LCID) to determine the language that the user has set as
her preference. Detailed information about LCID can be found in the IMultiLanguage Reference.
Isolation
You can separate IIS, ASP, and components into different processes for better performance. The drawback to putting
these in different processes is the cross-process communication performance hit. You can put IIS, ASP, and your
components in one process. This is the fastest method, but if your component goes down, it can bring down ASP and
IIS. You can put IIS in one process and ASP with your components in another so that IIS will not crash if your
component or ASP crashes. You can put IIS and ASP in one process and your component in another process. This is
slower than the previous option due to all of the cross-process communication; however, it does insulate IIS and ASP
from a buggy component. The slowest but
processes. If one crashes, nothing else will, but the performance will be very, very slow. It's a better idea to test your
components really well.
Component Configuration Protection Speed


IIS, ASP, and components in one process
IIS in one process, ASP and components in another process
IIS and ASP in one process, components in another process
1
2
3
4
3
2
1 IIS in one process, ASP in one process, components in one process 4
Legend: 1 = Least, 4 = Most
Java
Use Java (or C++) to write components. Java is a powerful language that you can use to create components that are
both-threaded.
Logging
You can turn on URI_Query extended logging to log ASP failures. This is not turned on by default. Turning it on is
tricky, so here are the steps:
1.
2.
3.
4.
Select a Web or FTP site and open its property sheets.
Enable logging if it is disabled and select the W3C Extended log file format.
Click Properties.
On the Extended Properties property sheet, select the fields you want to log (in this instance, URI_Query).
By default, Time, Client IP Address, Method, URI Stem, and HTTP Status are enabled.
5. Click Apply.
You can also log to the Windows NT? Server Event Log; however, logging to the Windows NT Server Event Log is not
a good idea if you've got lots of errors or are in debugging mode because you can fill up the log quickly. Using the
Windows NT Performance Monitor, you can log a variety of error conditions, including how many ASP requests have
failed and how many errors occurred during the script run-time.
Mail
Use Collaboration Data Objects (CDO) to send mail for Windows NT Server. CDO is a lightweight version of CDO for
Exchange. It works on SMTP or Exchange. If you are using another e-mail protocol, use a third-party component. A
comprehensive list is at http:.
tag


If you need to refer to objects that may not be used, instantiate them by using the tag rather than using
Object. Using Object causes the object to be created immediately. If you don't use
that object later, you end up wasting resources.

回春-联系电话英文


老公的日语-kanav


terror-shelf


保安英文-purchases


一什么扁担-ck是什么意思


讲授的英文-品头论足的意思


class怎么读-贺的拼音


著名的意思-九年级语文古诗



本文更新与2020-10-24 10:47,由作者提供,不代表本网站立场,转载请注明出处:https://www.bjmy2z.cn/gaokao/422786.html

ASP的外文翻译的相关文章

  • 爱心与尊严的高中作文题库

    1.关于爱心和尊严的作文八百字 我们不必怀疑富翁的捐助,毕竟普施爱心,善莫大焉,它是一 种美;我们也不必指责苛求受捐者的冷漠的拒绝,因为人总是有尊 严的,这也是一种美。

    小学作文
  • 爱心与尊严高中作文题库

    1.关于爱心和尊严的作文八百字 我们不必怀疑富翁的捐助,毕竟普施爱心,善莫大焉,它是一 种美;我们也不必指责苛求受捐者的冷漠的拒绝,因为人总是有尊 严的,这也是一种美。

    小学作文
  • 爱心与尊重的作文题库

    1.作文关爱与尊重议论文 如果说没有爱就没有教育的话,那么离开了尊重同样也谈不上教育。 因为每一位孩子都渴望得到他人的尊重,尤其是教师的尊重。可是在现实生活中,不时会有

    小学作文
  • 爱心责任100字作文题库

    1.有关爱心,坚持,责任的作文题库各三个 一则150字左右 (要事例) “胜不骄,败不馁”这句话我常听外婆说起。 这句名言的意思是说胜利了抄不骄傲,失败了不气馁。我真正体会到它

    小学作文
  • 爱心责任心的作文题库

    1.有关爱心,坚持,责任的作文题库各三个 一则150字左右 (要事例) “胜不骄,败不馁”这句话我常听外婆说起。 这句名言的意思是说胜利了抄不骄傲,失败了不气馁。我真正体会到它

    小学作文
  • 爱心责任作文题库

    1.有关爱心,坚持,责任的作文题库各三个 一则150字左右 (要事例) “胜不骄,败不馁”这句话我常听外婆说起。 这句名言的意思是说胜利了抄不骄傲,失败了不气馁。我真正体会到它

    小学作文