dipti prasad

dipti prasad

  • NA
  • 76
  • 39k

DataTable dt = (DataTable)Session["name"]; unable to cast

Dec 12 2014 12:03 AM
Unable to cast object of type 'System.String' to type 'System.Data.DataTable'.
Please help me how to resolved this error
my code
ctx.TempLedgerBranches.Add(postData);
Session["postData"] = postData;
DataTable mdt = (DataTable)Session["postData"]; error show on this line
 

Answers (3)