版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請進行舉報或認領(lǐng)
文檔簡介
1、本科畢業(yè)設(shè)計(論文)外文翻譯譯文:ASPASP介紹你是否對靜態(tài)HTML網(wǎng)頁感到厭倦呢?你是否想要創(chuàng)立動態(tài)網(wǎng)頁呢?你是否想要你的網(wǎng)頁能夠數(shù)據(jù)庫存儲呢?如果你答復:“是,ASP可能會幫你解決。在2002年5月,微軟預計世界上的ASP開發(fā)者將超過80萬。你可能會有一個疑問什么是ASP。不用著急,等你讀完這些,你講會知道ASP是什么,ASP如何工作以及它能為我們做什么。你準備好了嗎?讓我們一起去了解ASP。什么是ASP?ASP為動態(tài)效勞器網(wǎng)頁。微軟在1996年12月推出動態(tài)效勞器網(wǎng)頁,版本是3.0。微軟公司的正式定義為:“動態(tài)效勞器網(wǎng)頁是一個開放的、編輯自由的應用環(huán)境,你可以將HTML、腳本、可重用的
2、元件來創(chuàng)立動態(tài)的以及強大的網(wǎng)絡(luò)根底業(yè)務(wù)方案。動態(tài)效勞器網(wǎng)頁效勞器端腳本, IIS能夠以支持Jscript和VBScript。(2)。換句話說,ASP是微軟技術(shù)開發(fā)的,能使您可以通過腳本如VBScript Jscript的幫助創(chuàng)立動態(tài)網(wǎng)站。微軟的網(wǎng)站效勞器都支持ASP技術(shù)并且是免費的。如果你有效勞器安裝,你可以下載IIS互聯(lián)網(wǎng)信息效勞器3.0或4.0。如果你正在使用的Windows 2000,IIS 5.0是它的一個免費的組件。如果你是Windows95/98,你可以下載(個人網(wǎng)絡(luò)效勞器(PWS),這是比IIS小的一個版本,可以從Windows95/98CD中安裝,你也可以從微軟的網(wǎng)站上免費下載
3、這些產(chǎn)品。好了,您已經(jīng)學會了什么是ASP技術(shù),接下來,您將學習ASP文件。它和HTML文件一樣嗎?讓我們開場研究它吧。什么是ASP文件?一個ASP文件和一個HTML文件非常相似,它包含文本,HTML標簽以及腳本,這些都在效勞器中,廣泛用在ASP網(wǎng)頁上的腳本語言有2種,分別是VBScript 和 Jscript,VBScript與Visual Basic非常相似,而Jscript是微軟JavaScript的版本。盡管如此,VBScript是ASP默認的腳本語言。另外,這兩種腳本語言,只要你安裝了ActiveX腳本引擎,你可以使用任意一個,例如PerlScript。HTML文件和ASP文件的不同點
4、是ASP文件有“.Asp擴展名。此外,HTML標簽和ASP代碼的腳本分隔符也不同。一個腳本分隔符,標志著一個單位的開場和完畢。HTML標簽以小于號()完畢,而ASP以完畢,兩者之間是效勞端腳本。要寫一段ASP腳本,你不需要額外的軟件,因為它可以在任何HTML編輯器中編寫,比方Notepad。雖然如此,如果你對純文本感到無聊并想要使用一些特殊的軟件,你可以使用微軟的可視InterDev,通過調(diào)試對話框,幫助您輕松地創(chuàng)立一個ASP頁面。我希望您已經(jīng)對ASP文件有所了解以及它與HTML文件的區(qū)別。在下一節(jié),您將學習ASP是如何工作的。它如何工作的?根據(jù)你所學到的,ASP文件中的腳本是效勞器端腳本,這
5、意味著這個腳本程序在效勞器中處理,并且在發(fā)送到網(wǎng)頁瀏覽器之前腳本處理的結(jié)果將被轉(zhuǎn)化為HTML。例如,讓我們來看一看這張表格來比擬的一個HTML頁面和ASP頁面的轉(zhuǎn)變過程(5)。HTML 過程ASP 過程1. 一個用戶在瀏覽器中請求訪問 HYPERLINK 2. 這個瀏覽器找到相應的網(wǎng)站效勞器,并請求所需的頁面。3. 頁面所在的效勞器以HTML形勢返回給瀏覽器。4. 這個瀏覽器執(zhí)行客戶端代碼比方JavaScripts從而決定怎樣顯示頁面。1. 一個用戶在瀏覽器中請求訪問 HYPERLINK 2. 這個瀏覽器找到相應的網(wǎng)站效勞器比方IIS或PWS,并請求所需的頁面。3. 網(wǎng)站效勞器找出所請求的頁面
6、,并從ASP腳本分隔符(),中解析ASP代碼,產(chǎn)生一種標準的HTML頁面。效勞器就將這個HTML頁面返回給瀏覽器,所以用戶不能看到ASP代碼。4. 這個瀏覽器執(zhí)行客戶端代碼比方JavaScripts從而決定怎樣顯示頁面。你能看到,這兩個的整個過程中十分相似。因為ASP是在效勞器端的技術(shù),在HTML被創(chuàng)立和對客戶提供效勞之前,所需的頁面就在效勞器端執(zhí)行了。為了使這個更清楚,圖形1表示的是瀏覽器請求一個ASP頁面的過程 (6)。例如,一個客戶類型在瀏覽器輸入一個網(wǎng)址。瀏覽器從網(wǎng)絡(luò)效勞器端請求ASP頁面。效勞器獲得以“.asp擴展名的文件到ASP引擎中,這個引擎能使得對象或ActiveX組件被用來擴
7、展網(wǎng)絡(luò)效勞器應用特性。此外,ASP使用ADO連接到一個SQL數(shù)據(jù)庫,SQL, Access, Oracle,等等),取出相關(guān)的數(shù)據(jù),如一個特定區(qū)域當前的天氣。因此,可以根據(jù)指定的區(qū)域和時間,不同的網(wǎng)頁被存取。然后,效勞器生成HTML標簽,然后再把它發(fā)給客戶端。因此,當你查看ASP文件時,你將看到和標準的HTML文件沒什么兩樣。ASP包括五個內(nèi)置對象(7):請求-從用戶中通過HTML請求來獲取信息,反響-輸出客戶所請求的數(shù)據(jù)效勞器-控制互聯(lián)網(wǎng)信息效勞器會話-對于給定的用戶會話保存特定的變量申請-保存一個應用程序的資料,比方一個網(wǎng)頁計數(shù)器你已經(jīng)知道了ASP技術(shù)的工作原理。難道不精彩嗎?你可能想知道
8、如何使它工作,你需要怎樣才能讓它實現(xiàn)。在下一節(jié)里,你會發(fā)現(xiàn)這個方法。怎樣使它工作?首先,你需要設(shè)置一個環(huán)境,在那里你可以執(zhí)行你的腳本,那就是你需要設(shè)置你的網(wǎng)絡(luò)效勞器(IIS或PWS)。如果你有一個NT效勞器,IIS已經(jīng)安裝。如果你的是Window 95/98,你可以從Win98的光盤目錄中安裝PWS。如果你正在用UNIX,你可以從( HYPERLINK :/ )下載安裝而不是微軟的網(wǎng)站效勞器。然后,你將需要安裝一些數(shù)據(jù)庫軟件,如MS Access, Microsoft SQL Server (萬一你要連接數(shù)據(jù)庫)。最后但同樣重要的是,你需要一個ASP的編輯器具。它可以是任何的文本編輯器,如記事
9、本或Microsoft Visual InterDev。創(chuàng)立一個ASP文件,你可能需要知道一些腳本語言,如VBScript或JScript。如果你要處理一個數(shù)據(jù)庫,你還需要掌握一些數(shù)據(jù)庫知識,比方建立數(shù)據(jù)庫的數(shù)據(jù)源名稱(d sn),創(chuàng)立一個資料集。你可以訪問這個網(wǎng)站 HYPERLINK 來了解更多的有關(guān)數(shù)據(jù)庫的知識它的優(yōu)勢是什么?在先前的局部學習關(guān)于ASP技術(shù)的時候,你可能會一直在問你自己它能為你做什么。當然,ASP具有一定長處;否那么,就不會受歡送。讓我們來指出它的長處和功能。1. 動態(tài)網(wǎng)頁因為ASP支持腳本語言,在網(wǎng)絡(luò)效勞器,你的網(wǎng)頁可以被動態(tài)地創(chuàng)立。舉例來說,你可以對不用的用戶訪問你的網(wǎng)
10、頁來創(chuàng)立不同的頁面給他們。2. 與瀏覽器無關(guān)的,ASP和瀏覽器是獨立的,因為所有的腳本代碼都運行在效勞器端。瀏覽器只從效勞器得到一個標準的HTML網(wǎng)頁。3.數(shù)據(jù)庫訪問- ASP的其中一個最大的優(yōu)點是數(shù)據(jù)庫連接。讓您輕松的在你的網(wǎng)站上建立豐富的數(shù)據(jù)庫功能,如表格處理。4.內(nèi)置對象- ASP的5個內(nèi)置對象促進網(wǎng)絡(luò)應用程序開發(fā)利用。例如,你可以使用瀏覽器請求對象去找回信息。5. 免費的可用性-是的,它是免費的。你可以從微軟的網(wǎng)站免費下載效勞器(IIS或PWS)。您甚至不必有任何特殊的工具來寫一個ASP文件。換句話說,你能簡單地使用任何的文本編輯器,如記事本。總結(jié)ASP技術(shù)是一個支持動態(tài)網(wǎng)頁的效勞程序
11、開發(fā)。包括內(nèi)置對象與ActiveX組件,ASP的開發(fā)者可以創(chuàng)立一個動態(tài)網(wǎng)頁和利用數(shù)據(jù)庫的訪問。既然你已經(jīng)根本了解了ASP,最好去親手實踐下,這是去學習如何寫一個ASP文件最好的學習方法。在網(wǎng)上有許多的ASP教程。你也可以在這篇文章后面找到一些教程。希望你喜歡,祝你好運!參考1. 第一課:ASP介紹 HYPERLINK 2. ASP 概述 HYPERLINK 介紹 HYPERLINK 4. 動態(tài)效勞器網(wǎng)頁介紹 HYPERLINK 5. 開場學習ASP HYPERLINK :/6. Molisakulmongkon, P. (1999). Developing Web Database with
12、ASP. Bangkok: DK Book House: p. 162.7. 腳本和ASP HYPERLINK 這篇文章是Jantrathip Sae-Chin 為了EDC385G課程的互動而寫的奧斯丁-得克薩斯大學-多媒體設(shè)計及開發(fā) 原文:ASPIntroduction to ASPAre you sick of static HTML pages? Do you want to create dynamic web pages? Do you want to enable your web pages with database access? If your answer is “Yes
13、, ASP might be a solution for you. In May 2000, Microsoft 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
14、? Lets get to know ASP together.What is ASP?ASP stands for Active Server Pages. Microsoft introduced Active Server Pages in December 1996, beginning with Version 3.0. Microsoft officially defines ASP as: “Active Server Pages is an open, compile-free application environment in which you can combine H
15、TML, scripts, and reusable ActiveX server components to create dynamic andpowerful Web-based business solutions. Active Server pages enables server side scripting for IIS with native support for both VBScript and Jscript. (2). In other words, ASP is a Microsoft technology that enables you to create
16、dynamic web sites with the help of server side script, such as VBScript and Jscript. ASP technology is supported on all Microsoft Web servers that are freely available. If you have Window NT 4.0 Server installed, you can download IIS (Internet Information Server) 3.0 or 4.0. If you are using Window2
17、000, IIS 5.0 comes with it as a free component. If you have Window 95/98, you can download Personal Web Server (PWS), which is a smaller version of IIS, from Window95/98 CD. You can also download these products for free from Microsofts web site.Well, you have learned what the ASP technology is. Next
18、, you will learn about anASP file. Is it the same as HTML file? Lets explore it.What is an ASP file?An ASP quite like an HTML file. It contains text, HTML tags and scripts, which are executed on the server. The two widely used scripting languages for an ASP page are VBScript and JScript. VBScript is
19、 pretty much like Visual Basic, whereas Jscript is the Microsofts version of JavaScript. However, VBScript is the default scripting language for ASP (3). Besides these two scripting languages, you can use other scripting language with ASP as long as you have an ActiveX scripting engine for the langu
20、age installed, such as PerlScript.The difference between an HTML an ASP that an ASP the “.asp extension. Furthermore, script delimiters for HTML tags and ASP code are also different. A script delimiter is a character that marks the starting and ending of a unit. HTML tags begins with lesser than ()
21、brackets, whereas ASP script typically starts with . In between the delimiters are the server-side scripts.To write an ASP script, you dont need any additional software because it can be written with any HTML editor, such as Notepad. Nonetheless, if you feel bored with the plain text and would like
22、to use some special software, you can use Microsoft visual InterDev, which helps you to easily create an ASP page by giving you nice highlights and debugging dialogue boxes (4).I hope that you already have an idea of what an ASP and how it is different from an HTML file. In the next step, you will l
23、earn how ASP works. Lets go.How does it work?As you have learned, scripts in an ASP server-side scripts, which means that the scripts are processed on the server and then the result of the scripts will be converted to HTML before sending to the web browser. To illustrate, lets take a look at this ta
24、ble to compare the process of retrieving an HTML page and an ASP page (5).HTML processASP process1. A user requests a web page (i.e., HYPERLINK in the web browser.2. The browser finds the appropriate web server, and asks for the required page.3. The web server locates the required page and sends it
25、back to the browser as HTML text.4. The browser executes the client side scripting (like JavaScripts) determining how to display the results1. A user requests a web page (i.e., HYPERLINK in the web browser.2. The browser finds the appropriate web server (like IIS or PWS), and asks for the required p
26、age.3. The web server locates the required page, and parses out the ASP code within the ASP script delimiters (), produces a standard HTML page. The server sends that HTML page back to the browser, so the user cannot see ASP code.4. The browser executes the client side scripting (like JavaScripts) d
27、etermining how to display the resultsAs you can see, the whole process of the two is quite similar. Since ASP is a server-side technology, the required page is executed on the server before the HTML is created and served to the client. To make it clearer, Figure1 shows the processing behind a browse
28、r request to an ASP page (6).For example, a client types in a URL into your browser. The browser requests theASP page from the web server. The server proceeds the “.asp extension to ASP Engine in which Objects or ActiveX Components can be used to extend the web server with application-specific funct
29、ionality. In addition, ASP will use ADO to connect to a database (SQL, Access, Oracle, etc.) to pull out the relevant data, such as the current weather in a specific area. Thus, a different page is generated according to the area specified and time that the page is accessed. Then, the server generat
30、es HTML tags before sending it back to the client. Therefore, when you view the source of an ASP file, you will not see any different from a standard HTML file.ASP includes five build-in objects (7):Request to get information from the user that is passed along with an Response to output data to the
31、requesting clientServer to control the Internet Information ServerSession to store variables associated with a given user session Application to store information that remain active for the lifetime of an application, such as a page counter.You have already known how ASP technology works. Isnt it fa
32、scinating? You probably want to know how to make it work and what you need to make it work. In the next section, you will find the way to do it.How to make it work?First of all, you need to set up an environment where you can execute your scripts; that is you need to set up your web server (IIS or P
33、WS). If you have an NT Server, IIS is already installed for you. If you Window 95/98, you can install PWS from the add-ons directory on the Win 98 CD. If you are using UNIX, you can Chili!Soft HYPERLINK () instead of Microsoft web server. Next, you will need to install some database software, such a
34、s MS Access, Microsoft SQL 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 Microsoft Visual InterDev. To create an ASP file, you may need to know a scripting language, such as VBScript or JScript. If you want to
35、deal with a database, you also need to have some knowledge about database, such as creating a Data Source Name (DSN), creating a recordset. You can learn more about database access from this web site: HYPERLINK What are its advantages?While learning about ASP technology in previous sections, you mig
36、ht ask yourself all the time what it can do for you. Certainly, ASP must have some strength; otherwise, it wont be popular as such. Lets count on its strong points and functionality.1. Dynamic web page Since ASP supports scripting languages, which run on the web server, your web page can be dynamica
37、lly created. For example, you can create your web 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 on the server. The browser only gets the results from the server in a standard HTML page.3
38、. 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, such as form processing.4. Building-in objects The five built-in objects that come with ASP facilitate Web application development. For example, y
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會有圖紙預覽,若沒有圖紙預覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲空間,僅對用戶上傳內(nèi)容的表現(xiàn)方式做保護處理,對用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對任何下載內(nèi)容負責。
- 6. 下載文件中如有侵權(quán)或不適當內(nèi)容,請與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準確性、安全性和完整性, 同時也不承擔用戶因使用這些下載資源對自己和他人造成任何形式的傷害或損失。
最新文檔
- 促銷活動廣告語
- 企業(yè)開展“強素質(zhì)樹形象”活動情況小結(jié)
- 中秋節(jié)日的慰問信(17篇)
- 中學秋季開學典禮活動主持詞范文(8篇)
- 中秋佳節(jié)的活動主持詞范文(5篇)
- DB12-T 1071-2021 氟骨癥現(xiàn)癥病人隨訪管理規(guī)范
- 影響粉末靜電噴涂質(zhì)量的諸多因素
- 耐火材料 高溫耐壓強度試驗方法 征求意見稿
- 戈雅課件教學課件
- 八年級上學期語文第二次月考考試卷
- 制糖工藝基礎(chǔ)知識及煮糖技術(shù)(上課)
- 企業(yè)法人委托書模板
- GB 18668-2002海洋沉積物質(zhì)量
- FZ/T 64078-2019熔噴法非織造布
- 高三英語一輪復習讀后續(xù)寫導學案
- 如何看懂體檢報告
- 《民航英語口語》課程標準
- 2023年陜西投資集團有限公司校園招聘筆試題庫及答案解析
- 科目二考試成績單
- 《鍥而不舍金石可鏤》-完整版課件
- 人教版高一英語必修第一冊-unit-3-reading-and-thinking-課件
評論
0/150
提交評論