Learning ASP, the most important thing is to master the six major objects built into the ASP. In fact, in the previous lecture, we have learned the response object (Is it? Have you made a mistake! See the object, method, attribute, collection, and events (you don't know!), If you haven't touched it before, you don't touch these concepts, know how to use it, my point is just starting The key is Linyi. Below we continue to learn the Request object through an instance, in order to deepen understanding, please run these programs to see the output results 1. Use the request.serVariables to get environment variables, this part is very simple, but the content is very important, how to get? Please see the case:
<% @ Language = vbscript%>
<% 'wuf8.asp response.write "Run the path to the ASP file:" & _ request.servervariables ("script_name") & "Environment Variable Name font> td> | / font> td> tr> | ||||
Result1 font> td> | result2 font> td> tr> table> body> html>
Now, you should discover how the routines in the previous lecture wuf2.asp is what Easy! Note: The HTML tag is purely prepared for the following example, so don't feel strange. So, what environment variables are there? If you run the following example, you will know (this program deletes some code, it is best to go to my site download source for easy understanding). <% @Language = VBScript%> <% 'wuf9.asp Option Explicit Dim SV%>
|