First, let us know about the basic requirements of learning ASP. : ASP starts to personal minimum configuration: (1) understand a little HTML knowledge (experience in maintaining a web page); (2) Little database knowledge, if you use Microsoft Access or use the .mdb database. (3) It is best to have a little programming basis (preferably the VB series, requires if ... then ... END IF selection branch statement and loop statement). If you don't have a programming base, then you will try it. 2. Debug, run the software environment required to run the ASP: (1) Win9X PWS ("/add-on/pws/setup.exe" in Win98 is installed). As for how to install Personal Web Server, many magazines have been introduced (not too many, there have been a "ASP Personal Hand Guide" last year), in fact, it is very simple, no article is so complicated. If this is not, I have to suggest you call the editorial department. (2) or use Windows NT4.0 IIS4.0 (in the Windows NT4.0 Option Pack installer), if you want to build intranet in units, use this combination is preferred. After installation, if you enter http: //localhost/default.asp in your browser, the installation is successful (by default, your homepage should be placed in the "/ inetpub / wwwroot" directory). If you want to upload the debugged ASP file to the remote home server, you must be sure that the server supports ASP, but there is not much free home space for ASP.
3. ASP learning support (1) ASP technology website: http://www.chinasp.com/, from here you can also find some ASP-related English sites. (2) ASP Dynamic Network: http://active.t500.net/ (3) Windows NT4.0 Option Pack Description File and Active Server Pages3.0 Description File. (4) There are two file asp.chm in the MSDN Library disc of Visual Studio6.0, aspdoc.chm is an ASP help file, no to my site http://wuf.Bentium.net download (you can also download all Source program). (5) The purpose of this lecture is to teach you to paint the gourd, use ASP in your home page (including direct use of downloadable ASP programs), in practice first. If you want to further deepen, it is recommended to buy an ASP manual, such as "ASP Practice Classics" (China Railway Publishing House, Lin Jinlin). Second, try it with yourself. In order to enhance sensibility, let's explain how to edit and use the ASP files through two instances. Open the notepad of the Windows attachment, enter the following code, save as wuf1.asp (if there is any problem, you can go to my homepage to consult me):
<% @Language = VBScript%> <% response.write "" The output statement response.write "output result is to the browser." Response.write ""%> After editing, WUF1.ASP Put it to the main directory "/ inetpub / wwwroot" installed in the default Web site, enter http: //localhost/wuf1.asp in the browser will see the output. Let's take another example (wuf2.asp):
ip address = <% = Request.serverVariables ("remote_addr")%> body> html>
The output is the native IP address, simple. In the above two examples, we use the Notepad's editor (because the ASP file is a text file), but if you really want to use ASP, I recommend the following tools:
1. Homesite: Not only is one of the best tools for making homepage, and writing ASP files is also very good. 2. ASP-Edit Professional: Not only can you display ASP code in different colors, asp courses and VBScript helps these two files can go to the Huaja Homepage (http://www.newhua.com/) download. 3. Microsoft Visual InterDev6.0: Although it is a cow knife, it is the best tool for editing the ASP file. If you have used VB, it doesn't have to say more. The point that should be explained is that the popular Dreamweaver3.0 is not bad, but it is best not to edit the file with an ASP code, so as not to get more and more messy. Third, understand the ASP scripting programming environment ASP (Active Server Pages) is a powerful, flexible, easy-to-learn server-side programming environment, and its source code is running on server-side, and the results run are output to the client in the form of HTML code. . Using ASP not only quickly creates an interactive dynamic web page, but the program code is completely confidential, but more importantly, it is possible to apply to a variety of browsers without considering how client users use. If you use a client scripting program (such as: VBScript or JavaScript, you must consider the browser used by the user. We can understand the ASP program like this: 1. From the above two, it can be seen that the extension of the ASP file is .asp, an ASP file is usually made by the ASP script command and the HTML tag, the text composition, the ASP command must be enclosed in "<%%>" (About <% @ Language = VBScript%>, don't worry about it, then talk later). 2. Beginners should understand the ASP program, as long as they are two, they can be done together, and they are stunned. Pay attention to the code enclosed in <%%>, just like you have used it. HTM file, you know. The resulting output result is the HTML code you are familiar with after running in the server side. If response.write "
" is , and <% = request.servervariables ("remote_addr")%> The result is an IP address, such as wuf2.asp output In fact, as follows: ip address = 192.168.0.1 body> html>You can deepen understanding by selecting "Source File" under the "View" menu in IE.