Question: Which statement or statements are correct about ViewBag? ViewBag is a property defined in base controller. ViewBag is shared with the associated views of controller.action

Which statement or statements are correct about ViewBag?
ViewBag is a property defined in base controller.
ViewBag is shared with the associated views of controller.action(), including the view's Layout.
ViewBag is dynamic type, which means the value contained in ViewBag is not checked in the compilation but runtime.
ViewBag is an alias of ViewData, so ViewData can be used to retrieve value set in ViewBag.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!