What is the viewbag in mvc?
Answer / Amit Kanawjia
The ViewBag is a dynamic collection available in ASP.NET MVC views to pass data from the controller to the view without explicitly declaring a strong type for the view. It's useful for simple, one-time data transfers.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is mvc in programming?
What is difference between razor and aspx in mvc?
What is known as mvc?
What are viewmodels in mvc?
What are the advantages of using ioc containers in an application?
Explain how routing is done in mvc pattern?
Is forms authentication possible in mvc? If yes then explain in detail how?
Why webforms are better than mvc?
List the various return types of a controller action method?
What is lazy loading in mvc?
What is a glimpse?
What is razor syntax?