Site icon Dotnet Helpers

Difference between ViewBag, ViewData, TempData in ASP.NET MVC

ASP.NET MVC provide ViewData, ViewBag and TempData for maintaining the data between controller to view, controller to action, action to action.

Similarities between ViewBag & ViewData :

ViewData

ViewBag

TempData

 

Keep Cool Coding….

 

Exit mobile version