What is the difference between Tempdata viewdata and Viewbag 2024?
I'll answer
Earn 20 gold coins for an accepted answer.20
Earn 20 gold coins for an accepted answer.
40more
40more
Works at the International Development Association, Lives in Washington, D.C., USA.
ASP.NET MVC offers us three options - ViewData , ViewBag and TempData for passing data from controller to view and in next request. ... Helps to maintain data when you move from controller to view. Used to pass data from controller to corresponding view. Short life means value becomes null when redirection occurs.
2023-05-15 03:16:30
评论(499)
Helpful(122)
Helpful
Helpful(2)

Oliver Patel
QuesHub.com delivers expert answers and knowledge to you.
ASP.NET MVC offers us three options - ViewData , ViewBag and TempData for passing data from controller to view and in next request. ... Helps to maintain data when you move from controller to view. Used to pass data from controller to corresponding view. Short life means value becomes null when redirection occurs.