1. Question: Is ASP a programming language?
A: ASP is not a programming language, but a development environment. ASP provides an environment for executing commands on the server. It uses special symbols <% and %>) to distinguish between HTML and commands that must be translated by the server before they can be sent to the client. It can execute commands such as HTML, Microsoft VBScript, and Microsoft Jscript, so it can produce powerful Web applications.
2. Question: Can I use PWS to accommodate multiple Web sites on a Web server?
A: Only one Web site can be accommodated on PWS. To accommodate multiple Web sites on the same computer, you need to use Windows NT Server, Windows 2000 Server/Professional, and IIS.
3. Question: How to use six built-in ASP objects?
A: ASP provides multiple embedded objects that can be directly accessed and used in commands without being created. These six objects are mainly Request objects and Response objects) objects, Session objects, Application objects, Server objects, and Cookies objects. Other components can be loaded on the Server objects of these six objects, this can expand ASP functions.
The object created using Server. CreateObject. its lifecycle starts when it is created and ends when its webpage program ends. If you want this object to be used across webpages, you can use the Session object to record the objects created by Server. CreateObject.
4. Question: Why is Response used. during Redirect, the following error occurs: "The title is incorrect. The HTTP title has been written to the client browser. Any changes to the HTTP title must be made before the page content is written "?
A: Response. redirect can transfer a webpage to another webpage. The syntax structure is as follows: Response. redirect URL. The URL can be a relative address or an absolute address, but it is different in IIS4.0 and IIS5.0. An error occurs when IIS4.0 transfers a webpage before any data is output to the client browser. Here, the so-called data includes HTML labels, such as <HTML> and <BODY>, and has been improved in IIS5.0. By default, the buffer zone is enabled in IIS5.0, such errors are not generated.
There is a Buffer attribute in the Response object. This attribute can be used to set whether the website will transmit data to the client immediately after processing ASP. However, this attribute must be set before transmitting any data to the client.
For the sake of insurance, no matter which ASP operating platform is used, write <% Response. Buffer = True %> at the beginning of the page and set the Buffer to enable. This error will not happen.
5. Question: Does the buffer output affect webpage transmission?
A: In a large web page, the first part may have some latency in the browser, but loading the entire web page is faster than without buffering.
6. Question: Can I use the Request. QueryString set to query the string value when no form is submitted?
A: The Request object is used to read data from the browser. In addition to reading the content of form fields, it can also be used to read parameters attached to the URL, no matter how the Request string is added to the link address, the Request is no different. You can use the Request. QueryString collection to submit a form using the get method or to query all values of a string following the link of an additional query string.
7. Question: I wrote a lot of comments in the ASP script. Will this affect the server's processing speed of ASP files?
A: It is a good habit to annotate a program. Tested by foreign technical staff, the overall performance of ASP files with too many comments will only drop by 0.1%, that is to say, the performance of the server will not be decreased in actual applications.
8. Question: Do not use <% @ LANGUAGE = VBScript %>?
A: The <% @ LANGUAGE = VBScript %> code at the beginning of each ASP file is used to notify the server to write programs using VBScript. However, the default programming LANGUAGE of ASP is VBScript, therefore, you can ignore this code and run it normally. However, if the script language of the program is JavaScrip, You need to specify the script language in the first line of the program.