Sun Chili!Soft ASP provides both VBScript and JScript script interpreters to process the commands in an ASP script. The default scripting language is VBScript, but you can change this to JScript for an ASP page by using the <%@ LANGUAGE> directive at the beginning of your ASP file, as described in "Using @ Directives" in this chapter.
You can change the scripting language for a single block of script by enclosing the block in <SCRIPT> ... </SCRIPT> tags. Normally, a block of code enclosed in <SCRIPT> tags runs on the client side, but you can force the block to run on the server by including the runat=server attribute, as shown in the following example:
<SCRIPT language=JScript runat=server>
Alternatively, your system administrator can change the default scripting language to either VBScript or JScript on the ASP Server. For Windows systems, see "Editing the Windows Registry" in "Chapter 3: Managing Sun Chili!Soft ASP." For UNIX and Linux systems, see "Editing the Sun Chili!Soft ASP Configuration File" in "Chapter 3: Managing Sun Chili!Soft ASP."
Copyright 2002 Sun Microsystems, Inc. All rights reserved. Legal Notice.