- Data Passing techniques from a controller to View.
View Data and View Bag are Data Dictionary objects.
ViewData: View Data is accessible using string key value and need typecasting.
ViewBag: Dynamic type property, Doesn’t require typecasting
TempData: TempData is a dictionary object that is derived from TempDataDictionary class
TempData is used to pass data from current request to subsequent request
derived from HttpSessionState class
Session is valid for all requests, not for a single