What Is The Difference between Viewbag Viewdata and Tempdata?
diffrence between viewbag

Introductions ViewBag, ViewData, and TempData all are objects in ASP.NET MVC and these are used to pass the data in various scenarios. ViewData ViewBag TempData It is Key-Value Dictionary collection It is a type object It is Key-Value Dictionary collection ViewData is a dictionary object and it is property of ControllerBase class ViewBag is Dynamic property…

Subscribe

Select Categories