Interviews1 answer
What is the difference between tempdata, viewdata, and viewbag?
1 Answer
ViewData is a dictionary object while ViewBag is a dynamic property (a new C# 4.0 feature). ... TempData is also a dictionary object that stays for the time of an HTTP Request. So, Tempdata can be used to maintain data between redirects, i.e., from one controller to the other controller
Madan ShekarPosted Nov 5, 2018, 1:49 AM EST

