• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 10. APPLICATION and SERVER Variables > APPLICATION Variable Scope

APPLICATION Variable Scope

After you create an APPLICATION variable, it is immediately available to every page in your application. You can store simple variables or complex data types such as structures and arrays in it. Query record sets can also be stored in APPLICATION variables.

TIP

APPLICATION variables are great places to store queries that are used in many pages of your Web site. For instance, many forms that collect user information have a drop-down list of U.S. states. Querying the database every time you want to display this list can be a waste of valuable resources. Instead, write the query directly to the APPLICATION scope, and it will be stored in memory.

You will see an example of the code to put a query record set into the APPLICATION scope in the next section, “Creating APPLICATION Variables.”



PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint