Home > DeveloperSection > Forums > Does “TempData” preserve data in the next request also?
Anupam Mishra

Total Post:135

Points:949
Posted on    February-14-2016 10:46 PM

 ASP.Net C#  ASP.Net  ASP.NET MVC 
Ratings:


 1 Reply(s)
 352  View(s)
Rate this:
Hi,
Does “TempData” preserve data in the next request also? Please give me a solution.

Thank you in advance.


Manoj Bhatt
Manoj Bhatt

Total Post:153

Points:1079
Posted on    February-14-2016 11:16 PM

If  TempData is available through out for the current request and in the subsequent request it’s available depending on whether  TempData  is read or not.
So if TempData  is once read it will not be available in the subsequent request.

Don't want to miss updates? Please click the below button!

Follow MindStick