T
TS
I was under the impression that when you get a reference to an object, then
update that reference, the object gets updated. Apparently this isn't the
case using session?
code (note at this point this session object is null):
---------------------------------------------------------------------------
object o = Session["TheYearDataSet"];
if(o == null)
{
o = oh.FillTheYearDataSet(CISYear.ToString());
}
---------------------------------------------------------------------------
At this point, i would think that Session["TheYearDataSet"] would be the
same value as o, but it is still null even though o is now set. I thought
that o is just a reference to that object, and in changing the reference,
you change the object you are referencing????
thanks
update that reference, the object gets updated. Apparently this isn't the
case using session?
code (note at this point this session object is null):
---------------------------------------------------------------------------
object o = Session["TheYearDataSet"];
if(o == null)
{
o = oh.FillTheYearDataSet(CISYear.ToString());
}
---------------------------------------------------------------------------
At this point, i would think that Session["TheYearDataSet"] would be the
same value as o, but it is still null even though o is now set. I thought
that o is just a reference to that object, and in changing the reference,
you change the object you are referencing????
thanks