《中衡房地产信息管理系统的【设计明细】与实现--外文翻译.pdf》由会员分享,可在线阅读,更多相关《中衡房地产信息管理系统的【设计明细】与实现--外文翻译.pdf(10页珍藏版)》请在taowenge.com淘文阁网|工程机械CAD图纸|机械工程制图|CAD装配图下载|SolidWorks_CaTia_CAD_UG_PROE_设计图分享下载上搜索。
1、本科毕业设计(论文)外文翻译译文:译文:ASPASPASPASP介绍介绍你是否对静态HTML网页感到厌倦呢?你是否想要创建动态网页呢?你是否想要你的网页能够数据库存储呢?如果你回答:“是”,ASP可能会帮你解决。在2002年5月,微软预计世界上的ASP开发者将超过80万。你可能会有一个疑问什么是ASP。不用着急,等你读完这些,你讲会知道ASP是什么,ASP如何工作以及它能为我们做什么。你准备好了吗?让我们一起去了解ASP。什么是什么是ASP?ASP?ASP为动态服务器网页。微软在1996年12月推出动态服务器网页,版本是3.0。微软公司的正式定义为:“动态服务器网页是一个开放的、编辑自由的应用
2、环境,你可以将HTML、脚本、可重用的元件来创建动态的以及强大的网络基础业务方案。动态服务器网页服务器端脚本,IIS能够以支持Jscript和VBScript。”(2)。换句话说,ASP是微软技术开发的,能使您可以通过脚本如VBScript Jscript的帮助创建动态网站。微软的网站服务器都支持ASP技术并且是免费的。如果你有Window NT 4.0服务器安装,你可以下载IIS(互联网信息服务器)3.0或4.0。如果你正在使用的Windows 2000,IIS 5.0是它的一个免费的组件。如果你是 Windows95/98,你可以下载(个人网络服务器(PWS),这是比IIS小的一个版本,可
3、以从 Windows95/98CD中安装,你也可以从微软的网站上免费下载这些产品。好了,您已经学会了什么是ASP技术,接下来,您将学习ASP文件。它和HTML文件相同吗?让我们开始研究它吧。什么是什么是ASPASP文件?文件?一个ASP文件和一个HTML文件非常相似,它包含文本,HTML标签以及脚本,这些都在服务器中,广泛用在ASP网页上的脚本语言有 2种,分别是 VBScript 和Jscript,VBScript与Visual Basic非常相似,而Jscript是微软JavaScript的版本。尽管如此,VBScript是ASP默认的脚本语言。另外,这两种脚本语言,只要你安装了Activ
4、eX脚本引擎,你可以使用任意一个,例如PerlScript。HTML文件和ASP文件的不同点是ASP文件有“.Asp”扩展名。此外,HTML标签和ASP代码的脚本分隔符也不同。一个脚本分隔符,标志着一个单位的开始和结束。HTML标签以小于号()结束,而ASP以结束,两者之间是服务端脚本。要写一段ASP脚本,你不需要额外的软件,因为它可以在任何 HTML编辑器中编写,比如Notepad。虽然如此,如果你对纯文本感到无聊并想要使用一些特殊的软件,你可以使用微软的可视InterDev,通过调试对话框,帮助您轻松地创建一个ASP页面。我希望您已经对ASP文件有所了解以及它与HTML文件的区别。在下一节
5、,您将学习ASP是如何工作的。它如何工作的?它如何工作的?根据你所学到的,ASP文件中的脚本是服务器端脚本,这意味着这个脚本程序在服务器中处理,并且在发送到网页浏览器之前脚本处理的结果将被转化为HTML。例如,让我们来看一看这张表格来比较的一个HTML页面和ASP页面的转变过程(5)。HTML 过程1.一个用户在浏览器中请求访问http:/www.utexas.edu/index.html2.这个浏览器找到相应的网站服务器,并请求所需的页面。3.页面所在的服务器以 HTML形势返回给浏览器。ASP 过程1.一个用户在浏览器中请求访问http:/ ASP4.这个浏览器执行客户端代码(比代码,产生
6、一种标准的HTML页面。服务器如JavaScripts)从而决定怎样显示页面。就将这个HTML页面返回给浏览器,所以用户不能看到ASP代码。4.这个浏览器执行客户端代码(比如JavaScripts)从而决定怎样显示页面。你能看到,这两个的整个过程中十分相似。因为 ASP是在服务器端的技术,在HTML被创建和对客户提供服务之前,所需的页面就在服务器端执行了。为了使这个更清楚,图形1表示的是浏览器请求一个ASP页面的过程(6)。例如,一个客户类型在浏览器输入一个网址。浏览器从网络服务器端请求ASP页面。服务器获得以“.asp”扩展名的文件到 ASP引擎中,这个引擎能使得对象或ActiveX组件被用
7、来扩展网络服务器应用特性。此外,ASP使用ADO连接到一个SQL数据库,(SQL,Access,Oracle,等等),取出相关的数据,如一个特定区域当前的天气。因此,可以根据指定的区域和时间,不同的网页被存取。然后,服务器生成HTML标签,然后再把它发给客户端。因此,当你查看ASP文件时,你将看到和标准的HTML文件没什么两样。ASP包括五个内置对象(7):请求-从用户中通过HTML请求来获取信息,反应-输出客户所请求的数据服务器-控制互联网信息服务器会话-对于给定的用户会话保存特定的变量申请-保存一个应用程序的资料,比如一个网页计数器你已经知道了ASP技术的工作原理。难道不精彩吗?你可能想知
8、道如何使它工作,你需要怎样才能让它实现。在下一节里,你会发现这个方法。怎样使它工作?怎样使它工作?首先,你需要设置一个环境,在那里你可以执行你的脚本,那就是你需要设置你的网络服务器(IIS或PWS)。如果你有一个 NT服务器,IIS已经安装。如果你的是Window 95/98,你可以从Win98的光盘目录中安装PWS。如果你正在用UNIX,你可以从()下载安装而不是微软的网站服务器。然后,你将需要安装一些数据库软件,如MSAccess,Microsoft SQL Server(万一你要连接数据库)。最后但同样重要的是,你需要一个ASP的编辑器具。它可以是任何的文本编辑器,如记事本或Micros
9、oft Visual InterDev。创建一个ASP文件,你可能需要知道一些脚本语言,如VBScript或JScript。如果你要处理一个数据库,你还需要掌握一些数据库知识,比如建立数据库的数据源名称(d sn),创建一个资料集。你可以访问这个网站来了解更多的有关数据库的知识它的优势是什么?它的优势是什么?在先前的部分学习关于 ASP技术的时候,你可能会一直在问你自己它能为你做什么。当然,ASP具有一定长处;否则,就不会受欢迎。让我们来指出它的长处和功能。1.动态网页因为 ASP支持脚本语言,在网络服务器,你的网页可以被动态地创建。举例来说,你可以对不用的用户访问你的网页来创建不同的页面给他
10、们。2.与浏览器无关的,ASP和浏览器是独立的,因为所有的脚本代码都运行在服务器端。浏览器只从服务器得到一个标准的HTML网页。3.数据库访问-ASP的其中一个最大的优点是数据库连接。让您轻松的在你的网站上建立丰富的数据库功能,如表格处理。4.内置对象-ASP的5个内置对象促进网络应用程序开发利用。例如,你可以使用浏览器请求对象去找回信息。5.免费的可用性-是的,它是免费的。你可以从微软的网站免费下载服务器(IIS或PWS)。您甚至不必有任何特殊的工具来写一个ASP文件。换句话说,你能简单地使用任何的文本编辑器,如记事本。总结总结ASP技术是一个支持动态网页的服务程序开发。包括内置对象与Act
11、iveX组件,ASP的开发者可以创建一个动态网页和利用数据库的访问。既然你已经基本了解了ASP,最好去亲手实践下,这是去学习如何写一个 ASP文件最好的学习方法。在网上有许多的ASP教程。你也可以在这篇文章后面找到一些教程。希望你喜欢,祝你好运!参考参考1.第一课:ASP介绍2.ASP 概述3.ASP.DevASP介绍4.动态服务器网页介绍5.开始学习ASPhttp:/6.Molisakulmongkon,P.(1999).Developing Web Database with ASP.Bangkok:DK Book House:p.162.7.脚本和ASP这篇文章是Jantrathip S
12、ae-Chin 为了EDC385G课程的互动而写的奥斯丁-得克萨斯大学-多媒体设计及开发原文:原文:ASPASPIntroduction to ASPIntroduction to ASPAre you sick of static HTML pages?Do you want to create dynamic web pages?Do you wantto enable your web pages with database access?If your answer is“Yes”,ASP might be a solutionfor you.In May 2000,Microsoft
13、 estimated that there are over 800,000ASP developers in the world(1).You may come up with a question what the heck ASP is.Dont worry.After reading this paper,you will know what it is,how it works and what it can do for you.Are you ready?Lets get to knowASP together.What is ASP?What is ASP?ASP stands
14、 for Active Server Pages.Microsoft introduced Active Server Pages in December1996,beginning with Version 3.0.Microsoft officially defines ASP as:“Active Server Pages is anopen,compile-free application environment in which you can combine HTML,scripts,andreusable ActiveX server components to create d
15、ynamic andpowerful Web-based business solutions.Active Server pages enables server side scripting for IISwith native support for both VBScript and Jscript.”(2).In other words,ASP is a Microsofttechnology that enables you to create dynamic web sites with the help of server side script,such asVBScript
16、 and Jscript.ASP technology is supported on all Microsoft Web servers that are freelyavailable.If you have Window NT 4.0 Server installed,you can download IIS(Internet InformationServer)3.0 or 4.0.If you are using Window2000,IIS 5.0 comes with it as a free component.If you have Window 95/98,you can
17、downloadPersonal Web Server(PWS),which is a smaller version of IIS,from Window95/98 CD.You can also download these products f or free from Microsofts web site.Well,you have learned what the ASP technology is.Next,you will learn about anASP file.Is it the same as HTML file?Lets explore it.What is an
18、ASP file?What is an ASP file?An ASPquite like an HTML file.It contains text,HTML tags and scripts,which are executedon the server.The two widely used scripting languages for an ASP page are VBScript and JScript.VBScript is pretty much like Visual Basic,whereas Jscript is the Microsofts version of Ja
19、vaScript.However,VBScript is the default scripting language for ASP(3).Besides these two scriptinglanguages,you can use other scripting language with ASP as long as you have an ActiveX scriptingengine for the language installed,such as PerlScript.The difference between an HTMLan ASPthat an ASPthe“.a
20、sp”extension.Furthermore,script delimiters for HTML tags and ASP code are also different.A script delimiter is a character thatmarks the starting and ending of a unit.HTML tags begins with lesser than()brackets,whereas ASP script typically starts with.In between the delimiters are the server-side sc
21、ripts.To write an ASP script,you dont need any additional software because it can be written withany HTML editor,such as Notepad.Nonetheless,if you feel bored with the plain text and would liketo use some special software,you can use Microsoft visual InterDev,which helps you to easily createan ASP p
22、age by giving you nice highlights and debugging dialogue boxes(4).I hope that you already have an idea of what an ASPand how it is different from an HTMLfile.In the next step,you will learn how ASP works.Lets go.How does it work?How does it work?As you have learned,scripts in an ASPserver-side scrip
23、ts,which means that the scripts areprocessed on the server and then the result of the scripts will be converted to HTML beforesending to the web browser.To illustrate,lets take a look at this table to compare the process ofretrieving an HTML page and an ASP page(5).HTML process1.A user requests a we
24、b page(i.e.,http:/www.utexas.edu/index.htmlinthe web browser.2.The browser finds the appropriateweb server,and asks for the requiredpage.3.The web server locates the requiredpage and sends it back to the browser asHTML text.4.The browser executes the client sidescripting(like JavaScripts)determining
25、how to display the resultsASP process1.A user requests a web page(i.e.,http:/ web browser.2.The browser finds the appropriateweb server(like IIS or PWS),andasks for the required page.3.The web server locates the requiredpage,and parses out the ASP codewithintheASPscriptdelimiters(),produces a standa
26、rd HTMLpage.The server sends that HTML pageback to the browser,so the user cannotsee ASP code.4.The browser executes the client sidescripting(like JavaScripts)determininghow to display the resultsAs you can see,the whole process of the two is quite similar.Since ASP is a server-sidetechnology,the re
27、quired page is executed on the server before the HTML is created and served tothe client.To make it clearer,Figure1 shows the processing behind a browserrequest to an ASPpage(6).For example,a client types in a URL into your browser.The browser requests theASP page from the web server.The server proc
28、eeds the“.asp”extension to ASP Engine in whichObjects or ActiveX Components can be used to extend the web server with application-specificfunctionality.In addition,ASP will use ADO to connect to a database(SQL,Access,Oracle,etc.)topull out the relevant data,such as the current weather in a specific
29、area.Thus,a different page isgenerated according to the area specified and time that the page is accessed.Then,the servergenerates HTML tags before sending it back to the client.Therefore,when you view the source of anASP file,you will not see any different from a standard HTML file.ASP includes fiv
30、e build-in objects(7):Request to get information from the user that is passed along with an HTTPResponse to output data to the requesting clientServer to control the Internet Information ServerSession to store variables associated with a given user sessionApplication to store information that remain
31、 active for the lifetime of an application,such as a page counter.You have already known how ASP technology works.Isnt it fascinating?You probably wantto know how to make it work and what you need to make it work.In the next section,you willfind the way to do it.How to make it work?How to make it wo
32、rk?First of all,you need to set up an environment where you can execute your scripts;thatis you need to set up your web server(IIS or PWS).If you have an NT Server,IIS is alreadyinstalled for you.If you Window 95/98,you can install PWS from the add-ons directory onthe Win 98 CD.If you are using UNIX
33、,you can Chili!Soft()instead of Microsoft webserver.Next,you will need to install some database software,such as MS Access,MicrosoftSQL Server(in case you want to connect to database).Last but not least,you need an ASP editor.It can be any text editor,like NotePad or MicrosoftVisual InterDev.To crea
34、te an ASP file,you may need to know a scripting language,such asVBScript or JScript.If you want to deal with a database,you also need to have some knowledgeabout database,such as creating a Data Source Name(DSN),creating a recordset.You can learnmore about database access from this web site:What are
35、 its advantages?What are its advantages?While learning about ASP technology in previous sections,you might ask yourself all the timewhat it can do for you.Certainly,ASP must have some strength;otherwise,it wo nt be popular assuch.Lets count on its strong points and functionality.1.Dynamic web page S
36、ince ASP supports scripting languages,which run on the webserver,your web page can be dynamically created.For example,you can create yourweb page so as to greeting each user when they log into your page differently.2.Browser independent ASP is browser independent because all the scripting code runs
37、onthe server.The browser only gets the results from the server in a standard HTML page.3.Database Access One of the greatest assets of ASP is database connectivity.ASP enables you to easily build rich database functionality into your web site,suchas form processing.4.Building-in objects The five bui
38、lt-in objects that come with ASP facilitate Webapplication development.For example,you can use Request object to retrieve browserrequest information.5.Free availability Yes,its free.You can download web server(IIS or PWS)for freefrom Microsofts web site.You dont even have to have any special tool to
39、 write an ASPfile.In other words,you can simply use any text editor,like NotePad.ConclusionConclusionASP technology is a server-side programming developed to enable dynamic web pages.Withits build-in objects and ActiveX components,ASP developers can create a dynamic web page andmake use of database
40、access.Now that you have basic knowledge about ASP,it is better to have ahands-on experience,which is the best way to learn to learn how to write an ASP file.There aretons of ASP tutorials out there on the Web.You can also find some tutorials included at the end ofthis paper.Enjoy and good luck!Refe
41、renceReference1.Lesson1:Intro to ASP2.ASP Overview3.Introduction to ASP.DevASP4.Introduction to Active Server Pages5.Getting Started with ASP6.Molisakulmongkon,P.(1999).Developing Web Database with ASP.Bangkok:DK BookHouse:p.162.7.Scripting with ASP*This paper is written by Jantrathip Sae-Chin for the course EDC385G InteractiveMultimedia Design&Production as the University of Texas Austin