Wednesday, December 22, 2010

ASP @ Directives

We can use @ processing directives in our 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= "VBScript" CODEPAGE=65001%>
<% Dim myvar myvar = "This is my var" Response.Write(myvar) %>
The following five @ processing directives are supported by ASP.
  • @CODEPAGE
  • @ENABLESESSIONSTATE
  • @LANGUAGE
  • @LCID
  • @TRANSACTION

No comments:

Post a Comment