Re: ASP Application Variables

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: Egbert Nierop \(MVP for IIS\) (egbert_nierop_at_nospam.invalid)
Date: 01/15/05


Date: Sat, 15 Jan 2005 23:08:42 +0100


"shankar" <shankr57@hotmail.com> wrote in message
news:u86AV%23p%23EHA.3260@TK2MSFTNGP14.phx.gbl...
> Hello All,
> We have a website and number of virtual directories acting as individual
> application. Each virtual directory(Application) has set of application
> variables. I was wondering if there is a way to access and set those
> application variables programatically. For Ex. some server side vb admin
> script that can be run on the server itself to manage those variables.

Define 'manage variables' please?

Normally, Application variables, are set using vbscript in Global.asa or in
any .asp page.
I'm not quite sure if I understand what you are not able to do with script
that you want to be able to using admin script.

<- global.asa ->
<script runat=server language=vbscript>
Sub Application_OnStart
   Application("MyVar") = "blah blah"
End Sub
'etc!
</script>

> Any reference pertaining to the topic would be of great help.
>
> Thanks,
> Shankar.
>
>