ASP and VBScript Cheat Sheet

Methods Properties Functions
Request
BinaryRead
Response
AddHeader
AppendToLog
BinaryWrite
Clear
End
Flush
Redirect
Write
Application
Lock
Unlock
Session
Abandon
Server
CreateObject
Execute
GetLastError
HTMLEncode
MapPath
Transfer
URLEncode
Response
Buffer
CacheControl
Charset
ContentType
Expires
ExpiresAbsolute
IsClientConnected
Pics
Status
Request
TotalBytes
Session
CodePage
LCID
SessionID
Timeout
Server
ScriptTimeout
Error
ASPCode
ASPDescription
Category
Column
Description
File
Line
Number
Source
String
FormatCurrency
InStr
LCase
Left
Len
Mid
Replace
Response.write
Right
String
StrReverse
Trim
UCase
Date
Date
DateAdd
DatePart
DateSerial
Day
FormatDateTime
Hour
Minute
Month
MonthName
Now
Second
Weekday
WeekdayName
Year
Arrays
Join
Redim
Split
Ubound
Mathematical
Abs
Atn
Cos
Exp
Log
Rnd (Randomize)
Round
Sin
Sqr
Sgn
Tan
REGULAR EXPRESSIONS – PATTERNS FUNCTION ARGUMENT ORDERS
^
$
.
(a|b)
(…)
[abc]
[^abc]
[a-z]
[A-Z]
[0-9]
a?
a*
a+
a{3}
a{3,}
a{3,6}
!(pattern)
\b
\n
\r
\
\t
\s
\w
Start of string
End of string
Any single character
a or b
Group section
Item in range (a or b or c)
Not in range (not a or b or c)
Any lower-case letter
Any upper-case letter
Any numeric digit
Zero or one of a
Zero or more of a
One or more of a
Exactly 3 of a
3 or more of a
Between 3 and 6 of a
“Not” prefix. Apply rule when
URL does not match pattern.
End of word
New line
Carriage return
Escape Character
Tab
White space
Any word (= [A-Za-z0-9_])
DateAdd(Interval, Number, Date)

DateDiff(Interval, Date1, Date2)

InStr(Start, String, Substring, Compare)

FormatDateTime (Date, DateFormat)

Join(Array, Delimiter)

Left(String, Length)

Replace(Haystack, Needle, Replacement)

Split(Expression, Delimiter)

FILE MODES COMPARISON CONSTANTS NAMED DATE CONSTANTS
1 = Reading
2 = Writing
3 = Appending
0 = VBBinaryCompare
1 = VBTextCompare
2 = VBDataBaseCompare
0 = vbGeneralDate
1 = vbLongDate
2 = vbShortDate
3 = vbLongTime
4 = vbShortTime
DATE FUNCTION ARGUMENTS COMMON LCID CODES REDIRECT WITH 301 HEADER
yyyy = Year
q = Quarter
m = Month
y = Day of Year
d = Day
w = Weekday
ww = Week of Year
h = Hour
n = Minute
s = Second
2057 = English (UK)
1033 = English (US)
1036 = French (France)
1031 = German (Germany)
1034 = Spanish (Spain)
Response.Status=”301 Moved
Permanently”
Response.AddHeader “Location”,
“http://www.website.com”
Response.End
STRING CONSTANTS INCLUDING A FILE
VbCr
VbCrLf
VbFormFeed
VbLf
VbNullChar
VbNullString
VbTab
Carriage Return
VbCr and Line Feed
Form Feed
Line Feed
Null Character
Null String
Tab Character
<!–#include file=”include.inc”–>
Collections
Response
Cookies
Request
ClientCertificate
Cookies
Form
QueryString
ServerVariables
Application
Contents
StaticObjects
Session
Contents
StaticObjects

About onlinejt

Blogger

,

No comments yet.

Leave a Reply

*