Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Object out of session
Message
From
11/11/2005 12:55:04
 
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
ASP.NET
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01067744
Message ID:
01067755
Views:
21
David,

It's been awhile since I messed with ASP.NET, but I think you need to do something like this:
customer cust = Session["customer"];
string email  = cust.email;
~~Bonnie




>I've created an object customer:
>
>
>public customer
>
>{
>string email
>string phone
>}
>
>I put the object to session
>
>Session["customer"] = customer
>
>
>
>when I get to the next page I was hoping to be able to do something like this:
>
>string email = Session["customer.email"].ToString();
>
>I keep on getting an error that it cant find the object......
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform