ASP @ Directives

2013 年 3 月 9 日4470

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).

VBScript





<%@ Language= "VBScript" CODEPAGE=65001%>



<%



Dim myvar



myvar = "This is my var"



Response.Write(myvar)



%>











The following five @ processing directives are supported by ASP.

0 0