Partager via


ASP @ Directives

You can use @ processing directives in your scripts to send information to IIS about how to process an .asp file.

For example, the following script uses the @LANGUAGE processing directive to set the scripting language to Microsoft Visual Basic ? Scripting Edition (VBScript).

<%@ Language= &quot;VBScript&quot; CODEPAGE=65001%> 
<% 
  Dim myvar 
  myvar = "This is my var" 
  Response.Write(myvar) 
%> 

The following five @ processing directives are supported by ASP.

Requirements

Client: Requires Windows XP Professional, Windows 2000 Professional, or Windows NT Workstation 4.0.

Server: Requires Windows Server 2003, Windows 2000 Server, or Windows NT Server 4.0.

Product: IIS

See Also

Other Resources

ASP.NET @ Directives