Monday 21, May 2012
Welcome Guest, Register | Login  
      Home    |    Tutorials    |    Free Ebooks    |    Free Scripts    |    Articles    |    Blog     |    About Us    |    Contact Us

ASP Application Object

The Application object is created when the first .asp page is requested and remains there until the server shuts down. All the variables created with application object have application level scope. They are accessible to all the users. All .asp pages in a virtual directory and its subdirectories come under the application scope. So application level variables are shared by more than one user at a time.

Creating Application Variables

Application level variables are shared by more than one user at a time and they are accessed and changed by any page in the application. Application variables are created in Global.asa file.

<script language="vbscript" runat="server">

Sub Application_OnStart
application("apptitle")="Testing Application"

End Sub

</script>

Retrieving Application Variables

You can retrieve the application variables as follows.

<%
Response.Write(Application("apptitle"))
%>

 
     
   
ASP Tutorial
 
  ASP Introduction
ASP Introduction
  ASP Syntax
ASP Syntax
  ASP JavaScript
ASP JavaScript
  ASP Variables
ASP Variables
  ASP Arrays
ASP Arrays
  ASP If Statement
ASP If Statement
  ASP Procedures
ASP Procedures
  ASP Functions
ASP Functions
  ASP Sessions
ASP Sessions
  ASP Cookies
ASP Cookies
  ASP Application Object
ASP Application Object
  ASP Forms
ASP Forms
  ASP Comments
ASP Comments
  ASP Email
ASP Email
  ASP ADO
ASP ADO
  ASP File
ASP File
 
 
 
Web Designing Tutorials
  HTML Tutorial
HTML Tutorial
  DHTML Tutorial
DHTML  Tutorial
  CSS Tutorial
CSS Tutorial
  XHTML Tutorial
XHTML Tutorial
 
Programming Languages Tutorials
  C Language Tutorial
C Language Tutorial
  C++ Tutorial
C++ Tutorial
  Java Language Tutorial
Java Language Tutorial
  Data Structure Theory Tutorial
Data Structure Theory Tutorial
 
Server Side Scripting Tutorials
  PHP Tutorial
PHP Tutorial
  SQL Tutorial
SQL Tutorial
  ASP Tutorial
ASP Tutorial
 
Client Side Scripting Tutorials
  JavaScript Tutorial
JavaScript Tutorial
  VBScript Tutorial
VBScript Tutorial
 
 
 
POPULAR E-BOOKS
 
Download PHP Essentials  Ebook PHP Essentials
   
Download Algorithms in the Real World: Lecture Notes  Ebook Algorithms in the Real World: Lecture Notes
   
Download A Short Introduction to Operating Systems  Ebook A Short Introduction to Operating Systems
   
Download C# Development Ebook C# Development
   
Download So You Want To Write An e Book Ebook So You Want To Write An e Book
   
 
Studiesinn.com © 2012 All Rights Reserved.
Website Designed & Developed by TechXprtz