If i have a sub class which stored my data from a DataTable into ViewState["Myinfo"] how can I access it in another class?
ViewState["MyInfo"] = dtPricingQueue;
// This does not work
foreach (DataRow dr in (DataTable)ViewState["MyInfo"])
{
}
//Error foreach statement cannot operate on variables of type 'System.Data.DataTable' because 'System.Data.DataTable' does not contain a public definition for 'GetEnumerator'
Any help would be appreciated!
NOTE: I am using the AJAX ReorderList and trying to do a Save not with the ItemReorder, but a bulk save of data if the checkbox in the list is checked.
...
Go to the complete details ...