Tutorial by Topics: viewdata

ViewData and ViewBag are used to transfer data from controller to view. ViewData is nothing but a dictionary of objects and it is accessible by string as key. ViewBag is very similar to ViewData. ViewBag is a dynamic property. ViewBag is just a wrapper around the ViewData. TempData keeps data for...

Page 1 of 1