If the reader is already familiar with ASP 2.0 and is looking for a list of actual changes in version 3.0, then this information will be found below. If the reader is a beginner of ASP, you can go over this chapter to the next chapter, where you will have a step-by-step Introduction to ASP objects and their usage.
ASP 3.0 New Features Overview
In ASP 3.0, there are some new features or experiences with significant changes or improvements.
1. Script-Free ASP
As mentioned earlier, ASP processing does not include any scripting. asp pages are fast, and if you are creating a site or Web application file that might eventually use ASP, it is best to have these files use the. asp file name extension, regardless of whether they contain server-side scripts or just static ( HTML and text) content.
2. New flow control capacity
So far, if you want to move execution to another ASP page, you have to use the Response.Redirect statement, which is implemented by sending a response to the client to instruct it to load the new page. However, this is troublesome to the client. And when the proxy server is used for the client, an error message is generated. ASP 3.0 provides two new methods for server objects that allow pages to be converted on the server without requiring new client requests.
Server.Transfer is the conversion execution to another page, and Server.Execute is executing another page and then returning control to the original page. You can access the original page's environment in a new page, including all ASP objects such as response and request, but you cannot access the page-wide variables. If the original page uses a transaction flag (in the open <% @ ...% > Element), the transaction's environment is passed to the new page. If the transaction flag for the second ASP file indicates that the transaction is supported or required, the existing transaction will be used without starting a new transaction.
3. Error handling and new ASPError objects
Provides configurable error handling by providing a custom ASP page that is automatically invoked using the Server.Transfer method. In this ASP page, Server.get last error can be used to return an instance of an ASP Error object that contains the details of the error, such as the description of the error and the associated line number.
4. Encoded ASP Script
ASP scripts and client scripts can now be encoded using the base 64 encryption method. A higher level of encryption plan will appear in the next new version of the ASP (note that this feature is implemented by VBScript 5.0 and the JScript 5.0 scripting engine, so that the engines are required to exist when the script is executed). The encoded script will be decoded by the scripting engine at run time. Therefore, you do not have to use other tools, although this is not a very secure encryption method, but can protect the script not by the general user browsing and copying.
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