check out this video of using session in steps-
watch?v=wCKGJIvP0k0
How would you Append the list? Instead of recreating it each time. Remember the old selections and add the new.
Could you just have put lstTech.DataSource = Session(“Techs”)?
Why did you need to create a new ArrayList object?
What about the reverse? What about creating a session variable that is an array, and adding to the session variable. For example,
dim ar as array
Session(“Stuff”).Add(ar)? Is this possible?
Yes, it does for me. I had to create a new session variable. Otherwise, I’ll get an exception saying that the index is out of range. But that’s no big deal, as it works anyway.
Even in AJAX, too!
One of the great use of session variables is that I was working with a web-based security keypad. For example, I set the session variable to true for entering the zone number to bypass. I set the session variable to false when done in order to enter security code. I’m hitting a char limit, though.
I agree. I tried that in Visual C# and I get an error when I try to compile.
Hi Shalvin, very informative video. However, I believe that you should have cast the value to arraylist when retrieving from session. Since the aim here is to teach, we should have cast the session value because internally session stores everything as Object. Otherwise, very informative.
thanks man…it helped me much with this session notion
well done..
very good video. I would like to watch
videos on .net3.0 (c#)
You must be logged in to post a comment.
Comments
Leave a comment Trackback