Monday, March 22, 2010

The StaticObjects collection contains all the objects appended to the application/session with the HTML tag

. Syntax Application.StaticObjects(Key) Session.StaticObjects(Key) Parameter Description key Required. The name of the item to retrieve ________________________________________ Examples for the Application Object Example 1 To loop through the StaticObjects collection: <% for each x in Application.StaticObjects Response.Write(x & " ") next %> Example 2 In Global.asa: In an ASP file: <% for each x in Application.StaticObjects Response.Write(x & " ") next %> Output: MsgBoard AdRot ________________________________________ Examples for the Session Object Example 1 To loop through the StaticObjects collection: <% for each x in Session.StaticObjects Response.Write(x & " ") next %> Example 2 In Global.asa: In an ASP file: <% for each x in Session.StaticObjects Response.Write(x & " ") next %> Output: MsgBoard AdRot Properties: ASP CodePage Property ________________________________________ The CodePage property specifies the character set that will be used when displaying dynamic content. Example of some code pages: • 1252 - American English and most European languages • 932 - Japanese Kanji Syntax Session.CodePage(=Codepage) Parameter Description codepage Defines a code page (character set) for the system running the script engine Examples <% Response.Write(Session.CodePage) %> Output: 1252 ASP LCID Property