What is the difference between temp data, view, and view bag?
Answer / Ashish Kumar Vimal
In MVC, TempData stores temporary data that needs to be passed between controller actions during a single request. ViewData contains data specific to the current view and is typically used for rendering the view. ViewBag is a dynamic, lightweight alternative to ViewData.
| Is This Answer Correct ? | 0 Yes | 0 No |
What is mockmvc?
What is the main purpose of mvc architecture?
What’s new in the latest version of mvc?
Can we use webforms in mvc?
What is view engine in mvc?
What is mvc in software architecture?
Why is mvc better than webforms?
Explain what is mvc?
Is react an mvc?
How to perform exception handling in mvc?
Do people still use mvc?
What are the different view engine in mvc?