I have lost temp data value after returning JSON type
Just like below :
public ActionResult OnlineFormAction(string test)
{
//some other code
TempData["TestTempData" + yournumber] = model;
return Json(true, JsonRequestBehavior.AllowGet);
}


Chetan RanpariyaRank #1,852 · 801 reputationPosted Jan 17, 2017, 8:03 AM EST
MayankRank #4,018 · 371 reputationPosted Jan 18, 2017, 12:00 AM EST
alert('@TempData["TmpData"]');
},