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"), which can also be written as Request ("field name ")
Post: Request. Form ("field name"), which can also be written 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 (rather than one) script engines, 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: inetpubwwwroota. 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 that the site have the "execute (script)" attribute first, and then enter the address in URL format instead of 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 Pages (ASP, Active Server Pages) is a simple programming environment where HTML, script language, and a few components can be used together to create Internet applications on the Server;
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service