- 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
Session:
derived from HttpSessionState class
Session is valid for all requests, not for a single
redirect
I am impressed withh this site, real I am a big fan.
Thanks Ramon.
Amazing! Its actually amazing piece of writing, I have got much coear idea concerning from this post.