By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,134 Members | 1,275 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,134 IT Pros & Developers. It's quick & easy.

Access to public variables defined in Global.asax.vb

P: n/a
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
Nov 19 '05 #1
Share this Question
Share on Google+
2 Replies


P: n/a
"=?Utf-8?B?dnZlbms=?=" <vv***@discussions.microsoft.com> wrote in
news:A2**********************************@microsof t.com:
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.

--
Lucas Tam (RE********@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.

Newmarket Volvo Sucks! http://newmarketvolvo.tripod.com
Nov 19 '05 #2

P: n/a
The variable must be a "public shared" one.

"vvenk" <vv***@discussions.microsoft.com> schreef in bericht
news:A2**********************************@microsof t.com...
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

Nov 19 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.