Main /

ASP Keywords

Wiki_System*

technolowiki.org

[-edit SideBar-]

ASP Keywords

ASP Keywords

Control Directives

These Directives must appear as the very first ASP code line in an ASP file / ASP include tree and share this one line separated by whitespace:

<% @CODEPAGE="1252" '1252 is windows @ENABLESESSIONSTATE=False 'can suppress cookies if session-state is enabled on server, but not vice-versa @LANGUAGE="VBSCRIPT" 'could also be "JScript" or perhaps "PerlScript" @LCID="1031" @TRANSACTION="not_supported" %>

Statements

Call
Const
Dim
Do..Loop
Erase
Execute
Exit
For..Next
For Each..Next
If..Then..Else, If..Then..ElseIf..End If
On Error
Option Explicit
Private
Public
Randomize
ReDim
Rem (or single-quote ')
Select Case..Case..Else..End Select
Set
While..Wend
With

Functions / Run-Time Library

most of the integrated functions ASP offers are compatible with VB's (Visual Basic's) function set, but a few are not.

Variable and Type Functions

Array
CBool
CByte
CCur
CDate
(CDec)
CDbl
CInt
CLng
CSng
CStr
IsArray
IsDate
IsEmpty
IsNull
IsNumeric
IsObject
TypeName - finds more types than VarType (eg. "Field")
VarType

Array Functions

Join
LBound
Split
UBound
see also: IsArray()

Arithmetic and Mathematical Functions

Abs
Atn
Cos
Exp
Fix
Hex
Int
Log
Oct
RGB
Rnd
Round
Sgn
Sin
Sqr
Tan

Date and Time Functions

Date
DateAdd
DateDiff
DatePart
DateSerial
DateValue
Day
Hour
Minute
Month
MonthName
Now
Second
Time
Timer
TimeSerial
TimeValue
Weekday
WeekdayName
Year
see also: CDate(), FormatDateTime(), IsDate()

String and Text Functions

Asc
Chr
FormatCurrency
FormatDateTime
FormatNumber
FormatPercent
InStr
InStrRev
LCase
Left
Len
LTrim
Mid
Replace
Right
RTrim
Space
StrComp
String
StrReverse
Trim
UCase
see also: Join()/Split()

Environment and other Functions

CreateObject - see Objects: Server.CreateObject
Eval - better forget about that!
Filter
GetLocale
GetObject
GetRef
InputBox - no user interface in ASP :-)
LoadPicture - no user interface in ASP :-)
MsgBox - no user interface in ASP :-)
ScriptEngine
ScriptEngineBuildVersion
ScriptEngineMajorVersion
ScriptEngineMinorVersion
SetLocale

Objects

Collection - base object

Application - object

	.Contents - collection of Content (default property)
		Item - collection of Item (default property)
	.Lock()
	.StaticObjects - collection of StaticObject

ObjectContext - object
Request - object
Response - object

	.AddHeader(Name,Value) - method
	.AppendToLog()
	.BinaryWrite()
	.Buffer - property
	.CacheControl - property
	.Charset - property
	.Clear()
	.ContentType - property
	.Cookies - collection of Cookie
	.End()
	.Expires - property
	.ExpiresAbsolute - property
	.Flush()
	.IsClientConnected - property
	.PICS - property
	.Redirect()
	.Status - property
	.Write()

Server - object
Session - object

Application_Start - event
Application_OnEnd - event

Recent Changes (All) | Edit SideBar Page last modified on June 24, 2010, at 11:39 PM Edit Page | Page History
Powered by TechnoloWiki