Answer Posted / Ashwani Kumar Joshi
ViewData is a dictionary object that can be used to pass data from the controller to the view. It has a stronger typing and a key-value pair structure. ViewBag, on the other hand, is a dynamic object that allows for easier data binding but with weak typing.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers