As I see from the names of your classes, two of your classes are codebehind
classes. As such, when you go from the first page to the second, the first
web page is no longer available. Which means you cannot use the values of the
variables in its code behind(which are initialized in Page_Load or other
event handlers, I suppose). Why don't you try to take the variable z in a
seaparate class (with the logic of initializing her value), mark it as
public, and you will get access to it from any other class, including those
three.
Hope that helps!
Regards,
Kostadin Kostov
"vinuta" wrote:
I have three vb classes.
First one has a variable whose value i want to use in a function in
third vb class which is called by the second vb class.
e:g;
first.aspx.vb
second.aspx.vb
third.vb which has a function called drawlinegraph()
now fisrt.aspx.vb has a varible z which is initialized to some value in
the same class. Now i am calling the dralinegraph() from second.aspx.vb.
Now the function drawlinegraph needs to use the value of z from
first.aspx.vb how can i do this?
Ya how can i reference a variable which is an array in the other vb
class?
thanks,
Vinuta
--
vinuta
------------------------------------------------------------------------
Posted via http://www.codecomments.com
------------------------------------------------------------------------