You are viewing a plain-jane printable version of
See how this was done


Application variables were under-used on my site, but not for long! I realized recently that a list box that I was populating with data from my database changed very rarely.

So why should every visitor to the site have to cause an identical database query? The simple answer is to take advantage of Application variables. Think of the "Application" in this case being IIS - the server. Once set, Application variables are available to all pages on your site. But it's important to remember that they are gone forever if the server is restarted.

Using Application variables is easy - all you need are statements like:

// to set the data
Application ( 'Data' ) = 'something';

// to use the data
Response.Write ( 'data is ' + Application ( 'Data' ) );

Part 2: Storing HTML...