session problem
-
Hi! So, here is a relatively simple question, for you, I hope! ;) I'm running VS Studio Entreprise 2002 on WinXP, and doing some ASP.NET development. The app is in debug mode, and when I try to compile the weasel, well, it compiles. BTW, this is a simple chat room I'm trying to create... Great so far heh? :) But, the page contains a few textboxes, and a submit button. ....And here the troubles begin... When I press the submit button, which add some text from the textbox into the application variable, namely,
Application.Add("MessagesReceived", new ArrayList());
The text is entered into this variable. Then, when the user tries to access the MessagesReceived variable, with, namely...Session.Add("WhereToStart", new int()); int tmpInt = (int)Session["WhereToStart"]; Response.Write(Session["WhereToStart"].ToString());
The application crashes and says to me that the WhereToStart session is not an instance of an object, which kind of really bugs me bad. :mad: loll To wrap it up, I'm trying to create a simple chat room, and am at the code writing stage.... G.U.I. later.. and I can'T use my session variable, which seems to vanish before I can use it hence the title 'The Phantom Session' catchy isn'T it? mouhhaa Thanks for your help, Antoine Dubuc This by our hands that dream, "I shall find a way or make one!"