Title ASP Design FAQ and Solution Equation (1) Tigerwen01 (Reposted) Keyword ASP Design Source Computer Lovers
Frequently Asked Questions ASP Design Essentials -1 Source: Author computer enthusiasts: Autumn leaf texture as Microsoft's web page and database solutions, Microsoft ASP due to the unique operating system and other technical support backing, so it has been rapid development And is being received more and more, and there are many ASPs to write programs in the construction of e-commerce websites. Recently, there are many readers to consult us to study ASP methods and some problems encountered in learning, some of which are problems that beginners often meet and face. In order to let the reader deepen the understanding of the ASP during the learning ASP, and we can effectively solve the problems, we specifically collect some representative issues, listed here and give answers one by one, hoping This limited space is to help you help the ASP. 1. Problem: Is ASP a programming language?
A: ASP is not a programming language, but an development environment. The ASP provides an environment that executes instructions on the server, which uses special symbols <% and%> to distinguish between HTML and must be translated by server to send to the client. The instructions that it can perform include HTML languages, Microsoft Vbscript, and Microsoft JScript, so you can make a powerful web application.
2. Problem: Have multiple Web sites on the web server, can I use PWS?
A: You can only accommodate a Web site on the PWS. In order to accommodate multiple web sites on the same computer, you need to use Windows NT Server or Windows 2000 Server / Professional and IIS.
3, question: How to use 6 built-in ASP objects?
A: The ASP provides multiple embedded objects that can be directly accessed and used in the instructions without the establishment. These six objects mainly include: request, response (response) object, work phase (session) object, Application Object, Server (Server) Object, Cookies object, Server object in these six objects (Server) objects can load other components, which can extend the ability of the ASP.
With the object established by Server.CreateObject, its lifecycle begins when it is established, ending at the end of its webpage. If you want to use the object across web pages, you can record the object established by Server.CreateObject with the Session object.
4. Problem: Why do you appear when using Response.Redirect: "Total error, the HTTP title has been written to the User Browser, and the modification of any HTTP title must be" before writing "?
A: Response.Redirect You can transfer web pages to another page. The syntax structure used is: Response.Redirect URL, where the URL can be relative address or absolute address, but use in IIS5.0 Difference. An error occurred before any data is not output to the client browser before any data is output. Here, the so-called data includes HTML, such as ,
, etc., which has been improved in IIS5.0, and the buffer is open by default by default in IIS5.0, such an error is not Recovery.There is a buffer attribute in the Response object, which can set the site to transfer the data to the client immediately after processing the ASP, but setting this property must also be used to send any data to the client. For insurance, no matter what ASP run platform, start writing <% response.buffer = true%> on the page, set the buffer to open, such an error will not happen. 5, question: Is there any impact on the transmission of web pages?
A: In a relatively large web page, the first part may have some delay in the browser, but the speed of the entire web page is more than the buffer is fast.
6. Problem: Can the query string value when there is no form commit? The Request.QueryString collection is available?
A: The Request object is used to read the browser's data, in addition to reading the contents of the form field, can also be used to read the parameters included in the URL, regardless of how the request string is added to the link address to Request There is no difference. Use the GET method to submit a form or follow all the values in the link query string of additional query strings, you can use the request.QueryString collection.
7. Problem: I wrote a lot of comments in the ASP script, will this affect the speed of the server to process the ASP file?
A: In the process of writing the program, the comment is a good habit. Testing abroad, the overall performance of ASP file with excessive annotation will only fall by 0.1%, which means that the performance of the server will decrease in the actual application.
8. Problem: Do you need <% @ language = VBScript% in each ASP file?
A: Use <% @ language = VBScript%> code to notify the server to write programs now using VBScript, but because the ASP's preset program language is VBScript, it is ignored that this code can also operate normally. However, if the script language of the program is JavaScript, you need to indicate the scripting language used in the first line of the program.