1
Reply

What is TempData/ViewData/ViewBag in MVC ?

    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.