Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. session problem

session problem

Scheduled Pinned Locked Moved ASP.NET
helpquestioncsharpasp-netvisual-studio
1 Posts 1 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    antoine orchus tech
    wrote on last edited by
    #1

    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!"

    1 Reply Last reply
    0
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Don't have an account? Register

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • World
    • Users
    • Groups