C
cmrchs
Hi,
how do I 'save' a DataRow-object in ViewState or Session-object ?
Trying :
Session["Row"] = myDataSet.Tables[0].Rows[0];
or
ViewState["Row"] = myDataSet.Tables[0].Rows[0];
results in an error :
The type 'System.Data.DataRow' must be marked as
Serializable or have a TypeConverter other than
ReferenceConverter to be put in viewstate
Thnx
Chris
**********************************************************************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources...
how do I 'save' a DataRow-object in ViewState or Session-object ?
Trying :
Session["Row"] = myDataSet.Tables[0].Rows[0];
or
ViewState["Row"] = myDataSet.Tables[0].Rows[0];
results in an error :
The type 'System.Data.DataRow' must be marked as
Serializable or have a TypeConverter other than
ReferenceConverter to be put in viewstate
Thnx
Chris
**********************************************************************
Sent via Fuzzy Software @ http://www.fuzzysoftware.com/
Comprehensive, categorised, searchable collection of links to ASP & ASP.NET resources...