Hi,
I assume you are either using C# or VB.NET with the Option Strict On
setting.
In either case, when retieving the DataSet from the session, you will need
to cast the result.
For C#
ds = (DataSet)Session["YourKeyHere"];
For VB.NET (Option Strict On)
ds = CType( Session("YourKeyHere"), DataSet )
or
ds = DirectCast( Session("YourKeyHere"), DataSet )
Hope this helps
--
Chris Taylor
http://dotnetjunkies.com/WebLog/chris.taylor/
"Guadala Harry" <gh****@aol.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl...
This has to be easy...
I have a DataSet stored in the Session object. I simply need to read it
later and get the following error:
Cannot implicitly convert type 'object' to 'System.Data.DataSet'
From a code-behind module of an ASPX page, how do I read the contents of a
DataSet that is stored in the Session?
Thanks in advance.