Question: Under what circumstances, a developer should use ViewData over ViewBag? Choose option or options applicable. When the number of elements in the dictionary need to
Under what circumstances, a developer should use ViewData over ViewBag? Choose option or options applicable.
When the number of elements in the dictionary need to be displayed in the razor view.
When the dictionary needs to be iterated thru.
When the key of element could be a phrase rather than a word.
When the value of dictionary need to be checked at compilation.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
