Question: what is the difference between temp data view and viewbag?
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.