1

What is the difference between View Data,View Bag and Temp Data in MVC ? What are the situations where one can be more useful? What would be a code snippet where one can be used and another can't?

Sanjiv
  • 980
  • 2
  • 11
  • 29
  • 3
    Read the documentation. [ViewBag,ViewData,TempData](http://stackoverflow.com/documentation/asp.net-mvc/1286/viewbag-viewdata-tempdata#t=201608021547238510726) – Shyju Aug 02 '16 at 15:48
  • http://rachelappel.com/when-to-use-viewbag-viewdata-or-tempdata-in-asp-net-mvc-3-applications/ – Denys Wessels Aug 02 '16 at 17:01

0 Answers0