Access to public variables defined in Global.asax.vb

G

Guest

Hello:

I have defined public variables in Global.asax.vb that are initialized in
the application_start event.

How do I reference these variables in other ASP forms? For example, if my
variable is goTest, I thought I can reference it as Global.goTest but I see
that I cannot.

Thanks.

venki
 
L

Lucas Tam

I have defined public variables in Global.asax.vb that are initialized
in the application_start event.

How do I reference these variables in other ASP forms? For example, if
my variable is goTest, I thought I can reference it as Global.goTest
but I see that I cannot.

Assign them as application variables ... rather than local public
variables.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,020
Latest member
GenesisGai

Latest Threads

Top