Explain TempData in MVC?

Technology Community › Category: ASP.NET MVC › Explain TempData in MVC?
VietMX Staff asked 5 years ago

TempData is again a key, value pair as ViewData. This is derived from “TempDataDictionary” class. TempData is used when the data is to be used in two consecutive requests, this could be between the actions or between the controllers. This requires typecasting in view.