Temp data in MVC is used to store temporary data which can be used in subsequent request. Temp data is cleared out once it is read in any other request. To preserve the Temp data for subsequent requests we can use of TempData.Keep().
I am writing my experiences and learning to help others
Temp data in MVC is used to store temporary data which can be used in subsequent request. Temp data is cleared out once it is read in any other request. To preserve the Temp data for subsequent requests we can use of TempData.Keep().