ASP 3.0
Summary of new features
In ASP3.0, there are some new features or experiences that have undergone significant changes or improvements.
1,
Script-Free ASP
ASP processing does not include any scripts. asp pages are fast, and if you're creating a site or Web application file that might end up using ASP, it's a good idea to have these files use an. asp file name extension, regardless of whether they contain server-side scripts or just static (HTML and text) content.
2,
new flow control capability
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. Access the original page's environment on a new page, including all ASP objects such as response and request, but not the page-wide variables. If the original page uses a transaction flag (in an open <%@...%> element), the transaction 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 ASP error
Object
Provides configurable error handling by providing a custom ASP page that is automatically invoked using the Server.Transfer method. In this ASP page, Server.GetLastError 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,
after encoding the ASP
Script
ASP scripts and client scripts can now be encoded using the BASE64 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. Because you do not have to use other tools, although this is not a very secure encryption method, it is able to protect the script from being browsed and copied by ordinary users.
5,
a new way to include script files
In addition to using the <!--#Include ...--> element to enable server-side IIS to contain scripting code files, ASP 3.0 can also "contain" itself. <SCRIPT> elements and runat= "SERVER" and "src="
Path_and_filenameproperty to contain a server-based scripting code file. The relative physical path can also be used in the SRC attribute:
<script language= "
language"runat=" Server "src="
Path_and_filename"></SCRIPT>
6,
Server sciptlets
ASP 3.0 supports a powerful new scripting technology called the server Scriptlets. These are XML-formatted text files that reside on the server and can be used by the ASP as a generic COM object (that is, an Active server component). This makes it easier to implement the business logic script process for a Web application as a reusable component.
7,
active for enhanced performance
Server Components
Many of the Active server components in the ASP have been improved to provide better performance and additional functionality, an example of which is the new browser Capabilities component. In addition, there are some new components. For example, an XML parser enables an application to process data in XML format on the server. It also provides a closer integration of ADO with XML (through the new ADO 2.5 version provided by Windows 2000), which provides new opportunities for storing and retrieving data in XML format.
8,
Performance
In order to improve the performance and scalability of ASP and IIS, the new version does a lot of work. This includes the Self Tuning feature in ASP, which detects blocking and automatically increases the number of available threads. When a request is blocked by an external resource during execution, the ASP is able to detect it and provide more threads for simultaneous execution of additional requests and continuation of normal processing. However, if the CPU becomes overloaded, the ASP reduces the number of available threads so that when too many non-blocking requests are executed concurrently, the number of thread switches is minimized.