Current location - Education and Training Encyclopedia - Graduation thesis - For the design of teaching website, Dreamweaver and database should be combined to make the best opening report. . . .
For the design of teaching website, Dreamweaver and database should be combined to make the best opening report. . . .
Abstract: With the rapid development of network technology, people rely more and more on websites to obtain information. The immediacy and large capacity of information promote the development of websites.

From "static" to "dynamic", the design technology of dynamic website is also mature. This paper introduces some characteristics of dynamic web pages and their latest development.

ASP, a general development environment, briefly introduces the dynamics around how to build an ASP dynamic website based on IIS.

The trend of business website design, and shows the advantages of ASP in dynamic web design through example analysis.

Keywords: dynamic website; Object-oriented; Form; Script language a

1 Introduction

At present, a considerable number of internet websites still stick to "static" and have fallen far behind the pace of the times. The so-called "static" refers to the "fixed" content of the website. When the user's browser passes the http (Hypertext Transfer Protocol > 1) protocol of the Internet, the server only sends the designed static HTML document to the user's browser. The content of the page only uses standard HTML code, plus popular dynamic pictures in GIF'89A format at most. If the website maintainer wants to update the content of the page, he must manually update all the HTML documents. The fatal weakness of "static" websites is that they are not easy to maintain. In order to constantly update the page content,

With the increasing information content of websites, static websites gradually decline and dynamic websites gradually mature. Its excellent characteristics such as "less interaction, automatic updating" and "changing with time and people" undoubtedly adapt to the requirements of the information age. There are many technologies that can make websites "move". At present, ASP technology is more popular and mature.

2 Overview of dynamic website construction based on ASP

2. 1 "dynamic" concept

The so-called "dynamic" does not refer to GIF dynamic pictures on web pages. Here, the author has formulated the following sub-rules for the concept of dynamic pages:

1) "interactivity", that is, the WEB page will dynamically change and respond according to the user's requirements and choices, and the browser is the client interface, which will be the general trend of web development in the future.

2) "automatic update", that is, a new page will be automatically generated without manually updating the HTML document, which can greatly save the workload.

3) "Time changes with people", that is, different people visit the same website, which will produce different pages.

2.2 the concept and characteristics of ASP

Microsoft active S. two pages, which we call ASP, is actually a server-side scripting environment developed by Microsoft. ASP is included in IIS3. 0 and 4. 0. Through ASP, we can combine HTML pages, ASP instructions and ActiveX components to build a dynamic, interactive and efficient WEB server application. With ASP, you don't have to worry about whether the client browser can run the code you wrote. Because all programs will be executed on the server, including all script programs embedded with ordinary HTML, the server will only return the execution results to the client browser after the program is executed, which reduces the burden on the client browser and greatly improves the speed of interaction. The following is a list of active ..

Second, some unique functions of the page:

1) Using easy-to-understand scripting languages such as VBScript JScript, combined with HTML code, you can quickly complete the website application.

2) It does not need compilation, is easy to write and can be directly executed on the server side.

3) Use common text editors, such as Windows and Notepad, to edit and design.

4) browser independent (br+wserin

S. Second, the content of the web page is designed according to the page. Secondly, the scripting language (VBSoript Jsoript) used by the page is implemented on the WEB server.

Line, the client's browser does not need to be able to execute these scripting languages, as shown in figure 1.

ClIEnt browser ie or ns1r1'1'Qiu Jie 1 1 and 1' III].

WEB server active server p

5) Active status. The page can be compatible with any AotiveX scripting language. Besides designing with VBScript or JSoript, other scripting languages provided by third parties, such as REXX, Perl, Tol, etc. , which can be used through plug-ins. The script engine is a COM (Component Object Model) object that handles script programs.

6) Active state. The source program of the page will not be transmitted to the client browser, so it can prevent the source program from being stolen by others and improve the security of the program.

7) Server-side scripts can be used to generate client-side scripts.

8) Object-oriented.

AotiveX S. Two components (Aotivex server component) can be extended indefinitely. You can use Visual Basic, Java Visual C++, Cobol and other programming languages to write the AotiveX you need. Two ingredients.

2.3 ASP technology popular reasons

If you are a personal website maintainer and use free homepage space, then in most cases, you can only use Java, Java Script and the latest DHTM L technology. DHTML means that when downloading a web page from a web server, the content layout style and animation of the web page can be dynamically updated directly in the browser without processing by the server.

Perhaps for a personal website, making full use of DHTML technology is enough to make the webpage lively and dynamic. However, for enterprises that build commercial websites, DHTML alone is far from enough, because the dynamic effects that only occur on the client browser cannot meet the "dynamic" needs of a large number of information inquiries, customer consultation, resource interaction and so on. Therefore, as a designer of a commercial website, it is necessary to design a more practical and interactive "dynamic" website. Because most commercial websites have a lot of data and information, the original intention of building a network is to facilitate customers to query enterprise information, communicate with customers and get timely information feedback. Then, it is bound to face how to let users query the information in the web database through the Internet or Intran, and even input, update and delete the information on the web server in the browser interface.

At present, there are three commonly used design methods of "dynamic" websites: CGI (Common Gatc} Vay Interlace), IDC (Internet Database Connect-tor) and ActiveX Data Ohje Sichuan ADO. Comparatively speaking, ADO has the advantages of convenient use, fast development and execution, less system resources consumption and small disk space. According to the experience of many experts who have been engaged in website design for many years, the combination of ADO and ASP can make the website "dynamic" efficiently and quickly, and make the website easy to manage and maintain. In the long run, this pair of partners is bound to become the core technology of "dynamic" Web in the future, so the popularization of ASP technology in dynamic website design is inevitable.

Three examples

The following source code well illustrates the characteristics of ASP, which are concise, flexible, fast and changeable.

Establish an ASP program to automatically monitor the browsing time and dynamically display different page contents according to different time periods. Write the source code in Notepad and save it as [estl. asp:

& lthtml & gt

& ltho & ltly & gt

& ltF0 1}T COLOR="Green " >

& lt% If it is not oil E

Good morning, it's a nice day!

& lt% e 1 seif ' T oil e < # 19:00:00 # An & lt; 1 ton oil e> = #12: 00: 00 # then% >

(used when meeting in the afternoon) Good afternoon.

& lt% Else % & gt

Ha u}! Did you go to IRC to chat tonight!

& lt% End If % & gt

& lt/ho & lt; ly & gt

& lt/html & gt;

Save testl. Asp is in the virtual directory of the WEB server (such as aspsamp/) and browses in the browser through HTTP, such as the common function of intranet, that is, when users fill out forms in the browser, they transfer user data to the server by calling the general gateway program. In the past, in order to realize this function, it was necessary to write a CGI program independent of HTML and call it through HTML. Besides the disadvantages such as the complexity of CGI writing, the implementation of CGI is effective.

The rate is also a big problem. Each form must execute an executable document. When many people are online at the same time, multiple documents will be executed at the same time, which will greatly slow down the execution speed of the WEB server. Now ASP provides a completely integrated programming environment with HTML, which is obviously much more convenient than CGI.

4 conclusion

ASP, as a server-side scripting environment for dynamic web page design, makes most of the workload of users browsing web pages executed on the server side, greatly reducing the burden on browsers. As long as you use ordinary document editing programs, such as Windows Notepad, you can edit and develop ASP. It has many advantages, such as simplicity, high efficiency, quickness and changeability, which makes the website rich in information and convenient for users to query in real time. In a word, ASP is worthy of being a powerful tool for making dynamic websites.