An ASP file can contain text, HTML tags and scripts. Scripts in an ASP file are executed on the server
一个ASP当中可以包含文本,HTML标记,以及脚本程序。在ASP文件当中,所有脚本将在服务器端执行。
What you should already know
那么各位学习ASP之前,我们必须事先了解哪些知识呢?
Before you continue you should have some basic understanding of the following:
在你继续下面的ASP学习之前,你必须对以下罗列的相关知识有一个基本的了解:
- HTML / XHTML
HTML(超文本标记语言) / XHTML(可扩展的超文本标记语言) - A scripting language like JavaScript or VBScript
• 掌握Javascript和VBScript这两种脚本语言,或者掌握两者当中的一种
If you want to study these subjects first, find the tutorials on our Home page.
What is ASP?
什么是ASP?
- ASP stands for Active Server Pages
ASP是指动态服务器网页 - ASP is a program that runs inside IIS
ASP是在IIS内部运行的程序 - IIS stands for Internet Information Services
IIS的全称是互联网信息服务器 - IIS comes as a free component with Windows 2000
在Windows 2000 Server中,IIS是一个免费的组件 - IIS is also a part of the Windows NT 4.0 Option Pack
IIS也是Windows NT 4.0 所有可选择安装的组件之一 - The Option Pack can be downloaded from Microsoft
这些组件可以从微软公司的主页上下载 - PWS is a smaller - but fully functional - version of IIS
PWS(个人网络服务器)很像是IIS的袖珍版本,但它的功能很齐全 - PWS can be found on your Windows 95/98 CD
• 你可以在Windows95/98的安装盘上找到PWS的安装程序
ASP Compatibility
ASP的兼容性问题
- ASP is a Microsoft Technology
ASP是微软的技术 - To run IIS you must have Windows NT 4.0 or later
如果你要运行IIS,那么你的操作系统必须是Windows NT 4.0 或更高级版本 - To run PWS you must have Windows 95 or later
如果你要运行PWS,那么你的操作系统必须是Windows 95或更高级版本 - ChiliASP is a technology that runs ASP without Windows OS
ChiliASP是另外一种可以运行ASP的技术,但是它不能在Windows 操作系统上运行 - InstantASP is another technology that runs ASP without Windows
InstantASP也是另外一种可以运行ASP的技术,它同样也不能在Windows操作系统上运行
What is an ASP File?
ASP文件指的是什么?
- An ASP file is just the same as an HTML file
ASP文件与HTML文件大致相同 - An ASP file can contain text, HTML, XML, and scripts
ASP文件当中可以包含文本、超文本标记语言、可扩展标记语言和脚本 - Scripts in an ASP file are executed on the server
ASP文件中的脚本程序是在服务器上执行的 - An ASP file has the file extension ".asp"
ASP文件的扩展名是“.asp”
How Does ASP Differ from HTML?
ASP与HTML有什么不同?
- When a browser requests an HTML file, the server returns the file
当浏览器对一个HTML文件发出浏览请求时,服务器直接发送这个文件 - When a browser requests an ASP file, IIS passes the request to the ASP engine. The ASP engine reads the ASP file, line by line, and executes the scripts in the file. Finally, the ASP file is returned to the browser as plain HTML
当浏览器对一个ASP文件发出浏览请求时,IIS先将这个请求传递给ASP引擎;然后ASP引擎开始一行一行地解读这个被请求的ASP文件,并且,在解读的同时,执行这个ASP文件当中的脚本程序;最终,这个被解读完的ASP文件将以HTML数据流的形式被发送到浏览器,(也就是我们看到的最终的ASP网页效果)。
What can ASP do for you?
ASP能为您做些什么?
- Dynamically edit, change or add any content of a Web page
随时随地编辑、改变以及添加一个网页上的任何内容 - Respond to user queries or data submitted from HTML forms
回答使用者提出的问题,或者响应用户通过HTML表单提交的数据 - Access any data or databases and return the results to a browser
访问数据和数据库,并且将结果发送到浏览器上 - Customize a Web page to make it more useful for individual users
为个人用户量身定做一套极具使用性的网页 - The advantages of using ASP instead of CGI and Perl, are those of simplicity and speed
用ASP程序代替CGI程序和Perl程序的好处是:ASP代码的编写更为简单,执行的速度更快 - Provides security since your ASP code can not be viewed from the browser
因为你的ASP代码是无法从浏览器上看到从而为安全提供了保障 - Since ASP files are returned as plain HTML, they can be viewed in any browser
因为ASP文件是以HTML形式的内容发送到浏览器的,所以它们可以在任何浏览器上被察看到 - Clever ASP programming can minimize the network traffic
优秀的ASP程序可以大幅度地减少互联网的流量