1、1附 录Brief Introduction Of ASP1.ASP Language BasicsActive Server Pages (ASP) is a proven, well-established technology for building dynamic Web applications, which provides the power and flexibility you need to create anything from a personal, Web based photo gallery to a complete catalogue and shoppi
2、ng cart system for your next eCommerce project。 One unique feature of ASP is that it lets you choose your favourite scripting language, be it JavaScript or VBScript; however, VBScript is by far the most popular choice. In this article, Ill bring you up to speed on the basic syntax of the VBScript la
3、nguage, including variables, operators, and control structures.Server-Side ScriptingTo understand where ASP fits into the big picture of Web development, you need to understand the concept of a server-side scripting language. If youve programmed Web pages in Perl, PHP, JSP, or Cold Fusion before, yo
4、u can safely skip this section all of those are server-side scripting languages, and ASP works in much the same way. If youre coming to ASP armed only with knowledge of HTML (and perhaps with some CSS and/or JavaScript experience) then youll find that server-side scripting is quite a bit different.L
5、et me begin by giving you a quick review of how standard, non-ASP Web pages work. As shown in Figure 1, the Web browser on the client computer (the computer belonging to the user) makes a request for a page, say file.html (1). Assuming the requested file exists on the Web host computer where the Web
6、 Server software can find it, that software replies to the request by sending the file back to the browser (2). Any additional files (images, for example) required to display the page are requested and received in the same way. The protocol used for this exchange, and indeed for all communication be
7、tween Web browsers and Web servers is called Hypertext Transfer Protocol (HTTP).If youve ever used any JavaScript in your pages, you know that the requested Web page (file.html) can contain, in addition to plain HTML code, small programs written in JavaScript. These programs, or scripts, are read an
8、d executed by the Web browser while the page is 2displayed in the browser. So the Web browser must understand not only how to read HTML and display textand images, but it must also be able to run JavaScript programs appearing inside Web pages. This arrangement, where the Web browser runs the script
9、after receiving it from the Web server, is called client-side scripting. The name makes sense all of the script runs on the client-side the right-hand side of Figure 1. The Web server is completely oblivious to whether the file it is sending contains a script or not; its all up to the browser (the c
10、lient) to handle execution of the script.ASP fits into a different category of technologies, called server-side scripting, where it is no longer the browser running on the client that is responsible for running the script; instead, it is the Web server that runs the script. This process is illustrat
11、ed in Figure 2. As before, the Web browser requests a file (1). In this case, however, the filename ends with .asp (file.asp, for example), branding it as a file containing an ASP script that needs to be processed by the server. The server recognizes this, and instead of directly sending the request
12、ed file back to the browser, it sends the file to the ASP scripting engine (2). The engine is a component of the Web server software that can interpret ASP scripts and output the results as HTML. The trick here is that any given script can output different HTML each time it is run, so what comes out
13、 of the ASP engine can be different for each client (browser) request. That dynamically generated page is then sent to the browser in response to its request (3), in exactly the same way as the static page was sent in the previous example.Just as when the page contained client-side JavaScript and th
14、e server was completely unaware of this fact, when the page contains server-side ASP script, the browser does not know this at all. The ASP code contained in the page is interpreted and converted to plain HTML by the ASP engine before the browser gets to see it; so as far as the browser is concerned
15、 an ASP page looks just like any normal Web page. All the work is done on the server-side; thus the name, server-side scripting.2Definition and characteristic of ASPASP is a abbreviation of English APPLICATION SERVICE PROVIDER, usually Chinese is translated into a application service provider, it me
16、an that disposes, leases and manages the solution of using, specialized service company providing service for commerce , individual. Say ASP whether one business lease mode , enterprise user can rent computer and 3software system of ASP manage ones own business directly popular, so long as any user
17、has network browser, can rent the software needed to ASP , neednt install this software on the machine here . Thus a large sum of is used in the fund that IT products technology bought and operated sparingly. Someone think ASP may INTERNET third “ killer magnitudes of application “ (the first E-mail
18、, the second is WEB)Generally speaking, ASP has the characteristics of five respects:(1), ASP regards using as the business core, namely ASP offers the visit and management to using to customer;(2)ASP is it lease application service of form to offer to customer, customer enterprise neednt make exten
19、sive investment in such aspects as equipment , software , personnel for his application demand , wrap up to ASP enterprises. (3), ASP carry on centralized management, namely ASP is it carry on centralized management in one in the center position generally to serve, the customer carries on the applic
20、ation that the remote access needs through Internet;(4), ASP, to a lot of customer services, ASP offers a set of standardization to use the bag , offers specialized application service for a lot of different customers, borrow this application cost of customers enterprises of reducing;(5), ASP and cu
21、stomer offer the corresponding service according to the contract, from the point of view of customer, ASP whether one offer relevant service according to customer agreement content, is it use service organization that service of the system may run to guarantee.3 pluses and minuses of ASP1, Realize s
22、cale merit. Have software ownership of hardwares and right to use and traditional application facilitator to offer the one-to-one service mode with traditional users differently, ASP has ownership of application systems, users have right to use, use the system to concentrate on putting in the data c
23、entre of ASP, centralized management, disperse and use, regard form of lease of more than one pair as numerous users and offer the application technological service of the quality assurance, realize scale merit.42, The foreseeable expenses to user , stinting on expenses, can make sure to spend the l
24、ittle money and do the large undertaking . Because save the previous expenses which are bought software and hardware ,etc., users can rent more advanced application software . Charge of ASP to is it take according to type , guest of software degree , user quantity , service time limit is it make to
25、come to make, this sum of expenses can be predicted to customer.3, Convenient upgrading of customers application software.4, Reducing in the customer , the qualified personnel of IT lack the influence brought. The customer of ASP staff utilize the browser to enter relevant application software, simp
26、le and easy to use, do not need professional technical support.5, Help users to realize fast various kinds of are used and served , ASP trader has ability to combine resources of various fields, can offer the necessary solution to user in a short time . For example, typical ERP installation, time wh
27、en if want in customer end installation to take from half a year to two years, but some ASP traders of U.S.A. can offer ERP application scheme within 90-120 days such as USI and CORIO.6, Service of professional lines. Some ASP traders offer vertical application service , offers service of using to o
28、ne specific trade.7, Strong expansibility. ASP has strong expansion nature, can realize connecting with many kinds of networks , hardware equipment one : Insert enterprises long-rangly through the special-purpose communication line; Provide service for the long-range dialing customer through the lon
29、g-range dialing server; Serve customer of Internet of the cellular telephone through WAP.8, ASP most heavy shortcoming lie in security and dependability of network, enterprise deal in data set free at the open platform, the greatest worry is how to guarantee these data are not destroyed by other peo
30、ple .9, Because of what ASP is offered being a service for more than, so some special demands of users are very difficult to be satisfied.10, In realize ERP advanced ASP when using , user is it offer central management materials to need, need ASP trader to have very high credit degree.511, Lacking t
31、he sector standard that can be followed together, ASP is returned the place on the initial stage of developing, everybody is different in understanding of it, for instance the products and service standard, expenses standard ,etc., are unfavorable to the sound development of the trade.3ASP prospect1
32、, Market predictionHow big during the following two or three years ASP , this market , is, there is different prediction in different organizations!, wrap up IDC , GartnerGroup, Forrester ,etc However, they all have a basic view: In the following three to five years, IT manufacturer will transfer qu
33、ite a few of business to ASP market.U.S.A. Gartner Group Dataquest has issued to use the investigation result of the market of facilitator (ASP ) in the whole world. The investigation result shows , the market scale of ASP will rise to 3,600 million dollars in 2000 from 1 billion U.S. dollars in 199
34、9, will exceed 25,300 million dollars in 2004 .“Whether not for big enterprise or in small-scale one enterprise, it hope not it is throw in by fund not huge from infrastructure , software and staff member to needing, can guarantee the supreme application level . Though and service content is differe
35、nt and different to some extent according to using, when utilizing ASP, estimate that can reduce by 30%-70% of the total cost of ownership (TCO) “ (Dataquest Company President Application Services Worldwide Programs analyst Ben Pring).1999, North America account for whole ASP 65%, market of sales am
36、ount, expect this rate to lessen to 45% in 2004. The sales amount of Europe takes the rate of the whole ASP market, will rise to 32% in 2004 from 20% of 1999. “By 2004, Europe and the Asian-Pacific area will turn into with the maturity market of equal scale of U.S.A To U.S.A., European and Asian mar
37、ket face wireless ASP and use easier to be accepted, promote the development of market “ (Ben Pring ).In addition according to Gartner analysis, U.S.A. at present have 480 ASP enterprise, have new enterprises enter the market also every day. But have 60% ASP enterprise disappear by the end of 2001,
38、and enterprise that can survive still by 2004 it it is saids to be only 20%.62, ASP impact on traditional IT industryASP impact on software industryThe appearance of ASP , this commercial mode , will bring the revolutionary change to the software industry . ASP trader will be the main customers of s
39、oftware enterprises , some software enterprises turn to ASP management mode directly, some software enterprises will make up strategic alliance with ASP trader.ASP impact on hardware industryASP impact on hardware manufacturer very enormous, ASP management mode dependability , usability in hardware,
40、 can elasticity put forward high demand, in addition, the hardware manufacturer will be forced in terms of the solution or the service more, but not conceive their value proposition in terms of independent products. The hardware will be considered as a part among them of the application platform of
41、ASP more and more.3)ASP is influenced big to using the service tradeWhat ASP is offered is standardized service of more than one pair, so for application service provider, and quite a lot of customers need some special customization services. However, the fast reaction of ASP, reasonable price model
42、 will impel the traditional service trade to provide ASP service in ones own products .ASP impact on communication industryTo network service provider, ASP management mode will bring oneself within with the software provider , hardware Shang and use the shared risks together of facilitator, mechanis
43、m that the income shares .3, Influence several factors of ASP developmentRestriction with frequently wide communicationASP commercial mode need sufficient bandwidth resource support, communication infrastructure of our country at present got very great development, but bandwidth resource does not ar
44、rive redundant degree yet, so wide resource frequently may is it restrict an important factor , ASP of development to become.7Security of the networkThe security of the network includes meaning of two layers: First, technology can resist forcible entry of hacker, another important meaning whether AS
45、P job personal integrity, trader of itself reach certain level, the customers business secret will not be revealed because of reason of ASP oneself.3)Social credit systemWe see the ASP industry of U.S.A. develop rapidly , should see the credit system that they have accumulated for many years has act
46、ually been the key motive force of ASP development . However, review domestic enterprises and generally lack the credit idea, this has increased transaction cost and investment risk of ASP users greatly.4)Factor of the brandNeed high specification requirement very , require because of ASP commercial
47、 mode itself this and credit require safely, ASP brand factor of Shang is very important too.译 文ASP 简介1.ASP 基础语言ASP 是构建动态网页应用的被实践证明了的技术,为你需要创建任何的东西从一个基于图片库个人网页到一个完整的目录,为你的下一个商业项目提供全面的系统提供了强大的功能和灵活性。ASP 唯一的特性即让你选择你最喜欢的脚本语言,像 JavaScript 或者VBScript,然而 VBScript 是至今为止最流行的脚本语言。在本文中,我将带你学习VBScript 的基本 synt
48、ax,包括变量,操作数和控制 结构。服务器端的脚本为了理解 ASP 适合 Web 开发的大图片,你需要理解服务器端的脚本语言的概念。如果你用 Perl, PHP, JSP 或者 Cold Fusion 编写 Web 页面前,你能够安全略过这部分所有这些是服务器端的脚本语言,ASP 工作在许多相同的方式。如果你只是用 HTML 知识来辅助 ASP(也 许有过一些 CSS 或者 Java 脚本的经历 ),那么你将发现服务器端的脚本是有8点不同之处的。让我开始给你一个标准的快速回顾,非 ASP Web 网页工作。图 1 中显示客户端的计算机(计算机属于用户)Web 浏览器对页面做请求即 html (
49、1)文件。假定在 Web 主机上存在被请求的文件,Web 服务器软件能发现它,软件能通过发回文件给浏览器来回应请求。任何附加文件(如图象文件)要求显示页面是用同样的方式请求和接收。协议用做交易,的确 Web 浏览器和 Web 服务器通信是叫做 HTTP。如果你曾经在你的网页上用过 Java 脚本,你知道 请 求 Web 网页(html 文件)能包含除了普通 HTML 代码,用 Java 脚本写的小程序。 这些程序或者脚本通 过 Web 浏览器是可读可执行的当页面显示在浏览器上时。所以 Web 浏览器必须理解怎么读 HTML 和显示文本和图象,但是它必须能运行显示在 Web 页面的 Java 脚本程序。浏览器收到 Web 服务器这个安排后运行脚本,这个安排叫客户端脚本。在图 1 右手边所有名字有意义的脚本在客护端运行。Web 服务器文件发送是否包含脚本是完全健忘的,这是浏览器(客户端)处理执行脚本。ASP 适合不同的技术种类,叫客户端脚本,它不在浏览器运行客户端而是在 Web 服务器上负责运行脚本。这个过程在图 2 中描绘。 像前面一样, Web 浏览器请求文件(1)。然而在这样的情况下,文件名末尾用 asp(如文件 asp),标志着这个文件包含 ASP 脚本需要服务器来处理。服务器认识这个,代替直接送 请求文件给浏览器,它送文件