sloppycode.net
ASP Reference
Application
Application_OnEnd
Application_OnStart
Contents
Lock
StaticObjects
Unlock
Error
ASPCode
ASPDescription
Category
Column
Description
File
Line
Number
Source
ObjectContext
OnTransactionCommit
OnTransactionsAbort
SetAbort
SetComplete
Request
BinaryRead
Certificate
Cookies
Form
QueryString
ServerVariables
TotalBytes
Response
AddHeader
AppendToLog
BinaryWrite
Buffer
CacheControl
Charset
Clear
ContentType
Cookies
End
Expires
ExpiresAbsolute
Flush
isClientConnected
PICS
Redirect
Write
Server
CreateObject
Execute
GetLastError
HTMLEncode
MapPath
ScriptTimeout
Transfer
URLEncode
Session
Abandon
CodePage
Contents
Contents.Remove
Contents.RemoveAll
LCID
OnEnd
OnStart
SessionID
StaticObjects
Timeout
Application.Contents(key)
The contents collection of the Application object has 3 properties : Item, Key and Count. These are essentially variables that can be used accross the scope of the Application, only being reset, unlike the Session object, when the Server crashes or is restarted.
Item specifies the value of a specific member of the Contents collection, for example 'Application.Contents.Item("Town") = 'MyTown'.
Key represents a certain element in the Contents collection, which can be used if you do not know the name of the specific item.
It is safer to use the Key property than Item to avoid confusion - each key corresponds to its item name according to the order in which they were set.
The Count property specifies how many items are present in the Contents collection.
NOTE: 'Application(3) = 3.22' is the same as 'Application.Contents(3) = 3.22' which is the same as 'Application.Contents.Item(3) = 3.22'.
› Home
› C#
› Snippets
› Articles
› Tools
› Taglines
› ASP
› Dictionary Object
› FSO
› Unix cheat sheet
› Gaming
› CSS
› Yak
› Umbraco
› About
› Contact
› Privacy
› Projects
› Search
› Sitemap
Buy on Amazon
Buy on Amazon
Buy on Amazon
Buy on Amazon