Shashangka Shekhar
What is TempData/ViewData/ViewBag in MVC ?
By Shashangka Shekhar in .NET on Oct 04 2015
  • Shashangka Shekhar
    Oct, 2015 4

    ViewData is a dictionary objects, requires typecasting ViewBag is a dynamic property,not requires typecasting TempData also a dictionary objectsViewData & ViewBag maintain data when you move from controller to view,becomes null when redirection occurs. TempData keeps the information for the time of an HTTP Request.

    • 0


Most Popular Job Functions


MOST LIKED QUESTIONS