J
Jason
What's the correct term when talking about the life of a variable in
vb.net web?
in a vb.net codebehind for asp.net, is it possible to define a
variable in one sub, and call another sub and expect to see it? I know
the answer is no, but why is that?
for example:
sub hello()
dim x as string="hi there"
goodbye()
end sub
sub goodbye()
reponse.write(x) ' of course this fails
end goodbye
I know the answer is to use session state or viewstate to store the
variable, but is there another approach, like using a readonly
property from the master class? (sorry if that is not worded
correctly)
vb.net web?
in a vb.net codebehind for asp.net, is it possible to define a
variable in one sub, and call another sub and expect to see it? I know
the answer is no, but why is that?
for example:
sub hello()
dim x as string="hi there"
goodbye()
end sub
sub goodbye()
reponse.write(x) ' of course this fails
end goodbye
I know the answer is to use session state or viewstate to store the
variable, but is there another approach, like using a readonly
property from the master class? (sorry if that is not worded
correctly)