How does view data differ from view bag in mvc?
Answer / 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 |
Do people still use mvc?
Is angular js mvc?
Is mvc front end?
What does Model, View and Controller represent in an MVC application?
what are the components defined in the model from mvc architecture?
What are the advantages of mvc?
Mention what is the importance of nonactionattribute?
What is the use of keep and peek in “tempdata”?
What is difference between mvc and hmvc?
What are html helpers in mvc?
What is mvc and mvvm?
Is mvc different from a three layered architecture?