I have a Partial View and fill my TempData with this code block. serviceResponsecont is a list.
TempData["partialResponseList"] = serviceResponseCont;
After this from the PartialView I call the same controller and try to get same data like this.
serviceResponseCont = TempData["partialResponseList"] as List<CadetTest.Controllers.HomeController.cont>;
But it returns me null in second post. I have to carry this list but tempdata didn't help in this way. How can I fix it or is there any solution for this?