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.
Liked By
Write Answer
What is difference between ViewBag and ViewData in ASP.NET MVC?
Join MindStick Community
You have need login or register for voting of answers or question.
Chris Anderson
07-Sep-2011The 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.