Explain TempData in MVC?

Technology CommunityCategory: ASP.NET MVCExplain TempData in MVC?
VietMX Staff asked 3 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.