ViewData : Needs typecast, and has intellisense support,
scope is only limited to that view, not across action methods
ViewBag : scope is similar to ViewData, but it is dynamic,
no typecasting needed, no intelisense is available
TempData : Across actions
or views but only to the same controller, if it is used then the data
will be last until the last usage
Session : Global
scope, can be accessed anywhere
Comments