What is the use of viewbag in mvc?



What is the use of viewbag in mvc?..

Answer / Bhanu Bhandula

ViewBag is a dynamic, lightweight object in ASP.NET MVC that enables you to pass data from a controller action method to a view without explicitly creating a strongly typed view model.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More MVC Model View Controller Interview Questions

What is the main view engine called?

1 Answers  


What is the purpose of viewmodel in mvc?

1 Answers  


What are action verbs mvc?

1 Answers  


Why is mvc important?

1 Answers  


Where is routeconfig in mvc?

1 Answers  


What is mvc (model view controller)?

1 Answers  


which filters are executed in the end?

1 Answers  


What is the page Lifecycle of the MVC ?

1 Answers   Beahead Private Limited,


Explain using hyperlink how you can navigate from one view to other view?

1 Answers  


What is the difference between mvc 1 and mvc 2?

1 Answers  


What is crud mvc?

1 Answers  


Why was mvc developed?

1 Answers  


Categories