Partager via


Active Server Pages Functionality (Compact 2013)

3/26/2014

The Windows Embedded Compact implementation of ASP supports a subset of the functionality that is supported by the IIS implementation of ASP. The following sections show the functionality that is not supported by Windows Embedded Compact–based ASP.

State Maintained Between Requests

This is the greatest difference between the IIS and Windows Embedded Compact implementations of ASP. Windows Embedded Compact does not provide support for the Session or Application objects and does not send the Session-ID cookie that is used on IIS. Therefore, there is no automatic technique for maintaining states between requests or sessions.

The script writer must maintain information between requests and sessions. A script writer can do this by sending cookies to the client browser. This scheme assumes that the client browser has cookie support enabled.

<OBJECT> Tag support

Windows Embedded Compact–based ASP treats the <OBJECT> tag and properties as plain text. Interpretation of the <OBJECT> tag by the client browser is browser-specific. For more information, see Server Object Implementation.

Transaction Support

None of the methods or properties that are associated with transactions is supported on Windows Embedded Compact–based ASP. Tags and commands that are used by ASP on IIS to support transactions are ignored by Windows Embedded Compact–based ASP and treated as plain text. How the client browser interprets these values is browser-specific.

Server-Side Scriptlets

There is no support for server-side scriptlets in Windows Embedded Compact–based ASP. The <SCRIPTLET> tag and related tags are ignored by Windows Embedded Compact–based ASP and treated as plain text. How the client browser interprets the <SCRIPTLET> tag is browser-specific.

Additional Server-Side Scripting Options

In IIS, it is possible to specify options such as <SCRIPT LANGUAGE = JSCRIPT RUNAT = SERVER>, in which case the code between the <SCRIPT> and </SCRIPT> tags is executed on the server in the specified language, instead of on the client computer.

Windows Embedded Compact ignores the RUNAT option of <SCRIPT> tags and sends the script to the client browser. How the client browser interprets the RUNAT option is browser-specific.

Global.asa File

Windows Embedded Compact–based ASP does not search automatically for a file that is named Global.asa to obtain global settings. Initial settings or commonly used routines may be included by using header files.

Automatic Initialization or Termination Functions

Script procedures may be named Application_OnStart, Application_OnEnd, Session_OnStart, or Session_OnEnd, although Windows Embedded Compact–based ASP does not treat them differently from any other user-created procedures. Windows Embedded Compact–based ASP does not call script procedures automatically on application or session initialization or on termination, as is the case with IIS-based ASP.

Metabase Support

The web server does not provide metabase support. If a script contains a property that can be set in the IIS metabase, but that is not explicitly listed as supported in this web server document, it is not supported for use with the web server. For example, scripts containing ScriptMap statements may operate correctly with IIS, but they will fail with the web server.

See Also

Concepts

Active Server Pages Application Development
Web Server Implementation Details