[This is preliminary documentation and subject to change]

# What's New in ASP

Active Server Pages (ASP) has been enhanced with features that make it easier to use for scripters and Web application developers.

- New Flow Control Capabilities The ASP Server object now has two new methods that you can use to control program flow: Server.Transfer and Server.Execute. Rather than redirecting requests, which requires an expensive round-trip to the client, you can use these methods to transfer requests directly to an .asp file, without leaving the server. For more information, see Sending Content to the Browser.
- Error Handling ASP now has a new error-handling capability, so that you can trap errors in a custom error message .asp file. You can use the new Server.GetLastError method to display useful information, such as an error description or the line number where the error occurred. For more information, see ASPError Object.
- Scriptless ASP Because static content is usually processed more quickly than server-side content, it was previously better to assign an .asp file extension only to files that contained ASP functionality. Whenever you needed to add ASP functionality to your static .html files, you had to manually add .asp file extensions to correct related hyperlinks. With this latest release of ASP, however, .asp files that do not contain server-side functionality are now processed more quickly than ever before. So, if you are creating an evolving Web application in which files may eventually require ASP functionality, you can now conveniently assign those files .asp file extensions, regardless of whether they contain static or server-side content. For more information, see Creating an ASP Page.
- Performance-Enhanced Objects ASP now provides performance-enhanced versions of its popular installable components. These objects will scale reliably in a wide range of Web publishing environments. For more information, see ASP Installable Components Reference.
- XML Integration Extensible Markup Language (XML) enables you to semantically describe the complex structure of data or documents, which can then be shared across a variety of applications, clients, and servers. Using the Microsoft® XML Parser, included with Microsoft® Internet Explorer version 4.0, or later, you can create server-side applications enabling your Web server to exchange XML-formatted data with Internet Explorer version 4.0 or later, or with other servers having XML parsing capabilities. For more information, see the Microsoft XML Web site.
- Windows Script Components ASP supports Microsoft's powerful new scripting technology, Windows Script Components. Now you can turn your business logic script procedures into reusable Component Object Model (COM) components that you can use in your Web applications, as well as in other COM-compliant programs. For more information, see Using Components and Objects.
- A New Way to Determine Browser Capabilities ASP has a new feature for determining the exact capabilities of a browser. When a browser sends a cookie describing its capabilities (such a cookie can be installed by using a simple client-side script) you can create an instance of the Browser Capabilities component that retrieves the browser's properties as returned by the cookie. You can use this feature to discover a browser's capabilities and adjust your application accordingly. For more information, see Retrieving Browser Capabilities from a Cookie.
- ASP Self-Tuning ASP now detects when executing requests are blocked by external resources. It automatically provides more threads to simultaneously execute additional requests and to continue normal processing. If the CPU becomes overburdened, ASP curtails the number of threads. This reduces the constant switching that occurs when too many nonblocking requests are executing simultaneously. For more information, see the metabase property reference for AspThreadGateEnabled.
- Server-Side Include with SRC Attribute You can now use the HTML <SCRIPT></SCRIPT> tag's SRC attribute to do server-side includes. When you use the SRC attribute to specify a virtual or relative path, and use the RUNAT=SERVER attribute to denote server-side execution, you can achieve the same functionality as the #Include directive. For more information, see Including Files.
- Encoded ASP Scripts Traditionally, Web developers have been unable to prevent others from viewing the logic behind their scripts. ASP now supports a new script-encoding utility provided with Microsoft® Visual Basic Scripting Edition (VBScript) and Microsoft® JScript 5.0. Web developers can apply an encoding scheme to both client and server-side scripts that makes the programmatic logic appear as unreadable ASCII characters. Encoded scripts are decoded at run time by the script engine, so there's no need for a separate utility. Although this feature is not intended as a secure, encrypted solution, it can prevent most casual users from browsing or copying scripts. For more information, visit the Microsoft Windows Script Technologies Web site.
- Fine Tuning Codepages and Locales In IIS 5.1 and IIS 6.0, developers can now set the codepage and locale at the page level using Response.CodePage and Response.LCID. New metabase keys called AspCodePage and AspLCID now set the codepage and locale for the entire application, including global.asa. The behavior of Session.CodePage and Session.LCID has changed so that they are no longer set by @CodePage and @LCID. If the Response property is not set explicitly, it is set by the @ directive. If there is no @ directive, the Response property is set by the Session property. If the Session property is not set explicitly, it is set by the metabase property. If the metabase property is not set, the Session property is set by the system codepage or locale.

© 1997-2001 Microsoft Corporation. All rights reserved.