image\cslogo3d1.gif

Using @ Directives

Chili!Soft ASP provides @ directives in addition to the available scripting commands. The following standard ASP @ directives are available:

ENABLESESSIONSTATE. This directive turns on and off session tracking for an ASP page. If your page does not rely on session information, turning off session tracking can decrease the time it takes for Chili!Soft ASP to process the script. By default, sessions are enabled. For more information, see "Managing User Sessions" in this chapter. The syntax for this directive is as follows:

Syntax: ENABLESESSIONSTATE @ Directive

<%@ ENABLESESSIONSSTATE=True|False %>

LANGUAGE. By default, the primary scripting language for Chili!Soft ASP is VBScript, but this can be changed to JScript for each ASP page by using the <%@ LANGUAGE> directive at the beginning of your ASP file. The syntax and parameters are as follows:

Syntax: LANGUAGE @ Directive

<%@ LANGUAGE=scriptengine %>

Note

There must be a space between the @ and the keyword. More than one keyword can be specified in a directive; each keyword/value pair must be separated by a space. Do not put spaces around the equal sign (=).

Parameters: LANGUAGE @ Directive

scriptengine

The script engine that should process the script.

Note

The following standard ASP directives are not implemented by Chili!Soft ASP:

- CODEPAGE

- LCID

- TRANSACTION

For more information about configuring Chili!Soft ASP language support, see "Developing International Applications" in this chapter.

See also:

Creating the Basic ASP Application in this chapter

Creating an ASP Page in this chapter

Using Server-side Includes in this chapter

Copyright 2001 Sun Microsystems, Inc. All rights reserved. Legal Notice.