Karl,
In VB, you can say
session("array") (1) = "1"
session("array") (2) = "2"
In other words, the session object can be assigned a type other than
the
basic types of numbers and strings, in this case an array.
I wonder if that can be done in c#. Obviously, I wouldn't know how to
define
it since we don't explicity define session objects, I would think.
The syntax wouldn't need to be the same. For example, if I could create
an
array, assign it to some kind of session object, create another array,
and
assing the session object back to the other array, that would work too.
I
wouldn't need the session variable itself to work like an array. But it
would
be nice.
Also, all I am trying to do is use the array on a different page. If I
can
make the array somehow persistent in some other way, that would be very
ok
as
well.
-Bahman
:
Perhaps if you showed us what syntax you were using that doesn't work,
we
could be of more help.
I'm not sure what you mean by "session arrays"
In ASP.Net you have a session which you can access in c# such as:
Session["SomeUserId"] = 1;
Karl
--
MY ASP.Net tutorials
http://www.openmymind.net/ - New and Improved (yes, the popup is
annoying)
http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to
come!)
Hello!
I have a simple question.
Do we have session arrays that we can reference, assign, or select
from?
Could I please have a sample of how this is done. The obvious
syntax
that
I
am trying doesn't work. There are SA's in VB, but I am not seeing
anything
for C#.
Thank you!
-Bahman