2
Reply

Temp data loss after returning JSON type

Upendra Pratap Shahi

Upendra Pratap Shahi

Jan 17 2017 11:58 AM
254
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);
}
 

Answers (2)