Retrieving variables from application object

Advertisements

  Top Tutorials     New Tutorials     Submit     Login     Register  

Tutorial Detail

Retrieving variables from application object

When you have used Application Object, all ASP pages can store and retrieve information.
http://www.devtutorials.info/article/6_Storing_and_retrieving_variables_from__application_...
  • Total Hits: 12843

  • Average Rating :
    URL RatingURL RatingURL RatingURL RatingURL Rating

  •  

  • Total Votes: 139 votes

  • Category: ASP/Cookies and Sessions

  • Submitted on: 2008-03-06 08:45:10

  • Submitted By: Devesh Khanna

  • Set as Favorite

Description:

In this tutorial, we will take a look at Application Object. When you've used Application Object, all ASP pages can store and retrieve information. The information in Application Object stored in server and all ASP pages can access the information. The main diffrences between Session Object and Application Object is Application Object stores information in server memory.

Example:
Let's store some information:

Application("SiteName") = "Developer Tutorials"


Let's retrieve information from object :

SiteName = Application("SiteName")

When we need to use Application Object:

Common usage of Application Object is to share information in all sessions. As we have examined in our sample code,
we put our site name in an oapplication object named as SiteName and shared it all pages calling our SiteName object.    More detail...

Rating Detail

 Stars  Percentage  Total Vote
 One star  Vote LeftVote MiddleVote Right 38.85%  54
 Two starsTwo star  Vote LeftVote MiddleVote Right 10.07%  14
 Three starsThree starsThree stars  Vote LeftVote MiddleVote Right 11.51%  16
 Four starsFour starsFour starsFour stars  Vote LeftVote MiddleVote Right 10.79%  15
 Five starsFive starsFive starsFive starsFive stars  Vote LeftVote MiddleVote Right 28.78%  40

Caste Your Vote

 Rating  Selection  Guidelines
 Poor:     Very disappointing, useless.
 Fair:     Below average, disappointing but not useless.
 Good:     About average in its class.
 Very Good:     Above average for its category.
 Excellent:     One of the best Tutorials in its category.





Advertisements
Advertisements