What is the difference between temp data, view, and view bag?
Answer Posted / 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 |
Post New Answer View All Answers