This implies that ViewData and TempData are user-interface-for-the-web dictionaries that one would put stuff into and take stuff from in exactly the same syntactical manner as interacting with Session or the ViewState of the web forms world, casting, null checks, and all! ViewData seems a more ghetto version of ViewBag using the old paradigm from a time before dynamic. TempData is portrayed in the link I provide at the beginning of this paragraph as a lightweight version of Session allowing data to survive the journey across a RedirectToAction although I bet I would just use Session for most things as it is less esoteric, and yet, this argues that the fact that TempData only survives redirects makes it a little more secure for shepherding about sensitive information.
No comments:
Post a Comment