Ritesh Singh
What is the difference between tempdata, viewdata, and viewbag?
By Ritesh Singh in .NET on Aug 19 2016
  • Madan Shekar
    Nov, 2018 5

    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

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS