Upendra Pratap Shahi

Upendra Pratap Shahi

  • 187
  • 10.4k
  • 2.1m

Temp data loss after returning JSON type

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