mike55 Posted April 23, 2004 Posted April 23, 2004 Hi Guys, Have created a session object and am now trying to retrieve the data in it. this.Session.Add("sessUsername", strUsername); Thanks Quote A Client refers to the person who incurs the development cost. A Customer refers to the person that pays to use the product. ------ My software never has bugs. It just develops random features. (Mosabama vbforums.com)
wessamzeidan Posted April 23, 2004 Posted April 23, 2004 in VB Dim s as string=Session.Item("sessUsername") just change it to C# Quote Proudly a Palestinian Microsoft ASP.NET MVP My Blog: wessamzeidan.net
Administrators PlausiblyDamp Posted April 23, 2004 Administrators Posted April 23, 2004 string s = (string) Session[sessUsername"]; Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Arch4ngel Posted April 23, 2004 Posted April 23, 2004 Yeah... or simply string s = Session["sessUsername"].ToString(); Quote "If someone say : "Die mortal !"... don't stay to see if he isn't." - Unknown "Learning to program is like going out with a new girl friend. There's always something that wasn't mentioned in the documentation..." - Me "A drunk girl is like an animal... it scream at everything like a cat and roll in the grass like a dog." - Me after seeing my girlfriend drunk and some of her drunk friend. C# TO VB TRANSLATOR
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.