ASP Best Practices

Next Topic

Language Default

Override the server's default scripting language (VBScript) by using the @LANGUAGE directive. For example, to ensure that the default language is JScript, put the following code at the top of each ASP page:

<%@ LANGUAGE=JScript %>

To use the <SCRIPT> tag for server-side processing, use the RUNAT attribute:

<SCRIPT LANGUAGE="
Script Language
" RUNAT=SERVER>. 

Note that no spaces are used adjacent the equal signs.