3
Answers

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

dipti prasad

dipti prasad

9y
860
1
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)