This article ASP article (1) shows some of the most basic methods for the ASP dynamic website design. I believe that the ASP has had the most basic understanding of the ASP, and this article will further introduce the ASP dynamic website while answering questions. Some basic techniques.
Since the first article of this article, I have received some friends' comment from some friends. I am very expected that a considerable part is the first time I first contact ASP, so many friends have proposed why browse ASP articles in the browser (1) What is the original code when I see? Since there are more friends who have encountered this problem, the author answers here. First of all, I want to emphasize the ASP to be a server-side script environment. When the user requests the .asp file from the browser, the ASP script starts running, then the web server calls the ASP, ASP fully read the requested file, execute all The script command is sent to the browser, which means that you cannot simply browse .asp files in an existing operating system (such as Win95, 98), use the "Open" command in your browser; , Run .asp files require server-side support, except for Microsoft Internet Information Server in Windows, Active Server can also be used for the components of the Personal Web Server in MS Windows NT Workstation and MS Windows 95/98, so regardless What you install is NT or WIN95 / 98, you must install the ASP server-side environment on the original system to allow your machine to run .asp files. Since most friends are now installed in Win95 or 98, the author focuses on how to run and browse .asp files in Win95 / 98. Because Mspersonal Web Server supports Universal Gateway Interface (CGI) applications, Internet Database interface (IDC) applications, IIS Application Interface (ISAPI) applications, and supports running and developing ASP applications, making Win95 and afterwards It has a sound website operation and management function similar to NT. What you have to do is installed on the existing WIN95 / 98 system, which is recommended to install the latest version 4.0. When the installation is complete, PWS4.0 will be automatically loaded when the system is started. Open the PWS, select the "Advanced" button in the left column (see below asp2a.gif), point the "/ _private" directory under the "virtual directory", then click the "Edit Properties" button on the right, as shown, In the dialog box, you can edit the physical path and directory name of the virtual directory. The physical path of "/ _Private" is "D: / INETPUB / WWWWROOT", which is the system default WWW release root directory, will An example Test1.asp file is copied to the D: D: / INETPUB / WWWROOT directory. Finally, just select the access permission of the virtual directory to "execute" and enter "http://localhost/test1.asp" in the "address" column of the browser, you can run and browse the ASP program.
Know how to run and browse the ASP program, let's continue the study of the ASP dynamic website design.
The previous introduced several of the most basic ASP programs, I believe that everyone has a general understanding of the application of ASP, this article will continue to introduce some web dynamic functions written with ASP. Due to the inconsistency of the web browser standard, how to make our own websites adapted to a variety of different browsers have become the most headache of the website designers. Under the current situation, we are not willing to abandon Netscape or IE, but we sometimes have to consider the actual browsing effect of the client browser. In the past, we often use JavaScript to write a program to identify different browsers used by the client, then today Let's take a look at how to use ASP more convenient and accurately to this purpose. Put the following code, scrapped into your Notebook and saved as Browser.asp. <% @ Language = vbscript%>
HEAD>
Use the browser performance components provided by ASP to identify
other customer browser b> font>
<%
DIM BC
Set bc = server.createObject ("mswc.browsertype")
%>