all groups > visual studio .net general > june 2003 >
You're in the

visual studio .net general

group:

rescue the value of a variable type application from file .vb


rescue the value of a variable type application from file .vb clv
6/30/2003 6:11:08 PM
visual studio .net general:
Hello:
I need to rescue the value of a variable type application from a file ".vb",
when making
"j = Application("test")" throws an error to me, if I the same make from a
pagina aspx I do not have problems.
as I must do it? it is possible to do it?
Claudio Lemus

Re: rescue the value of a variable type application from file .vb Christof Nordiek
7/2/2003 5:24:25 PM
Hi Claudio,

the best way to store values Application-wide in .NET-Framework is to use
static resp. shared variables
(shared in VB is the same as static in C# ans most other .NET languages).
You could declare them as public fields in a class and then you can use them
anywhere in your Application.
The advantge is not only, that they can be used outsie of aspx-Pages but
they're also type-safe.

cn

"clv" <clemus@(NOSPAM)orden.cl> schrieb im Newsbeitrag
news:O7usMT1PDHA.2832@TK2MSFTNGP10.phx.gbl...
[quoted text, click to view]

AddThis Social Bookmark Button