G
Guest
I would like to check whether the session object contains dataset before
retrieving from the data source.
If NOT CType( Session("ds"), Dataset) = "" Then
dg.DataSource= ds.Tables("dt")
dg.DataBind( )
Else
...retrieve from datasource
End if
The code above throws back error as dataset is not of String type. I've
tried other ways of checking this such as replacing the double quote "" with
"System.Data.Dataset" or "System. Object", etc but all to no avail.
Anyone can help ?
retrieving from the data source.
If NOT CType( Session("ds"), Dataset) = "" Then
dg.DataSource= ds.Tables("dt")
dg.DataBind( )
Else
...retrieve from datasource
End if
The code above throws back error as dataset is not of String type. I've
tried other ways of checking this such as replacing the double quote "" with
"System.Data.Dataset" or "System. Object", etc but all to no avail.
Anyone can help ?