Apr 23, 2004 #1 M mike55 Contributor Joined Mar 26, 2004 Messages 727 Location Ireland Hi Guys, Have created a session object and am now trying to retrieve the data in it. this.Session.Add("sessUsername", strUsername); Thanks
Hi Guys, Have created a session object and am now trying to retrieve the data in it. this.Session.Add("sessUsername", strUsername); Thanks
Apr 23, 2004 #2 W wessamzeidan Junior Contributor Joined Dec 8, 2002 Messages 379 Location Lebanon in VB Dim s as string=Session.Item("sessUsername") just change it to C#
Apr 23, 2004 #3 P PlausiblyDamp Administrator Joined Sep 4, 2002 Messages 6,471 Location Lancashire, UK string s = (string) Session[sessUsername"];
Apr 23, 2004 #4 A Arch4ngel Senior Contributor Joined Mar 22, 2004 Messages 940 Location Montreal, QC Yeah... or simply string s = Session["sessUsername"].ToString();