Interviews2 answers
What is difference between Viewbag and Viewdata in ASP.NET MVC?
2 Answers
ViewData is faster then ViewBag.
Dhara PatelPosted Nov 17, 2019, 11:46 PM EST
The basic difference between ViewData and ViewBag is that in ViewData instead creating dynamic properties we use properties of Model to transport the Model data in View and in ViewBag we can create dynamic properties without using Model data.
Samir BhogaytaPosted Jun 28, 2016, 9:03 PM EDT
