23. Question: How can I read HTML form fields in an ASP file?
A: The Request object can be used not only to read parameters attached to the URL, but also to read the content of HTML form fields. The syntax structure is as follows:
<Form name = Formname method = "Get | Post" Action = "URL"> <Form>
The method can accept Get or Post transmission methods. The Post method allows transmission of a large amount of data, and the Get method attaches the data to be transmitted to the URL, then it is delivered to the server together, so the amount of data transmitted is limited, but the execution efficiency is better than that of the Post method.
You can send data to the server using the Get or Post method. The method for receiving data using the Request object is as follows:
Get: Request. QueryString "field name"), you can also write it as Request "field name ")
Post: Request. Form "field name"), you can also write it as Request "field name ")
24. Question: How can I improve the efficiency of using the Request set?
A: When a Request set is used, it contains a series of searches for related sets, which is much slower than accessing a local variable. Therefore, if you want to use a value in the Request set multiple times on the page, you should consider storing it as a local variable.
25. Question: Can I use VBScript or Jscript on an ASP page and use the script engine in combination?
A: You can use VBScript or JScript on the ASP page. However, JScript and VBScript cannot be used on the same page at the same time. Because the server must instantiate and try to cache two instead of one) the script engine, which increases the burden on the system to a certain extent. Therefore, in terms of performance, you should not mix multiple script engines on the same page.
26. Problem: When an ASP file is created and syntactically compliant, enter the following address in the browser or open the browser through the resource manager: c: \ inetpub \ wwwroot \. asp, there will be an error that cannot be run, and the prompt is that the permission is incorrect or the file cannot be accessed. Why can't ASP files run normally?
A: This is because the ASP file requires the site to have the "execute script" attribute first, and then requires that the address be entered according to the URL format, instead of the DOS format, we need to install and start the Web Service Platform on the computer, and ensure that ASP files are stored in the virtual directory of the Web server, you can browse through the HTTP format, enter in the address bar of the browser: "http: // Web site name or site IP address)/ASP File Name". Press enter to view the result of ASP file execution on the server in the browser.
27. Question: What is ASP. NET? What is the relationship between ASP and ASP?
A: Active Server PagesASP is a simple programming environment. In this environment, you can use HTML, script language, and a few components to create Internet applications on the Server;
ASP. NET is a powerful programming environment launched by Microsoft. You can use C # and other advanced languages and scripting languages, HTML, XML, and XSL to create network-based applications. ASP. NET regards C # As an object-oriented language. In many aspects, C # will become a language similar to Microsoft and Java. C # is one of the most important functions in ASP. NET development. Microsoft will develop C # into a strong competitor of Java. This is also an important part of the Microsoft. Net Framework. I think C # is the main tool for Microsoft to beat its opponent in the programming language field.
ASP. NET is superior to ASP programs in terms of object-oriented, database connection, and large site applications. ASP. NET also provides more new features, such as built-in object caching and PAGE result caching; built-in XML support, which can be used for simple processing of XML datasets; server Control provides more interactive systems.
ASP. NET is still completely locked in Microsoft's operating system. To realize ASP. NET's potential, you need to use C # Or vb.net. These two languages will become the core scripting language of ASP. NET standards.