|
-
Jul 27th, 2005, 04:51 AM
#1
Thread Starter
Fanatic Member
[RESOLVED] Session Problems
Hi there,
I have a strange problem with Sessions at the moment.
In my project i have a few pages a user must go through.
On the first page it creates the object, populates some data on it, then i store the object in a session, lets call it "SESSION_MYDATA", and the user needs to go to the next page. On the page Load i get the object from the session, SESSION_MYDATA, and populate more data on it.
Now this works fine.
I have added a button that opens a new windows by calling some javascript.
when this window opens and i try in the page_load to get the session,SESSION_MYDATA, but it returns nothing when it should contain the object.
i have other pages similar to this that produce new pop up windows and they can obtain the sessions with out any trouble. except this one window.
To add data to the session i use
VB Code:
Dim mycls As New myClass
.....
.....
Session.item("SESSION_MYDATA") = mycls
to get data from the session i use
VB Code:
Dim mycls As myclass
mycls = Ctype(Session.item("SESSION_MYDATA"),myclass)
in this one case mycls is nothing
Barry
Visual Studio .NET 2008/Visual Studio .NET 2005/Visual Studio .NET 2003
.NET Framework 3.0 2.0 1.1/ASP.Net 3.0 2.0 1.1/Compact Framework 1.0
SQL Server 2005/2000/SQL Server CE 2.0
If you like, rate this post
Compact Framework for Beginners
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|