ViewData和ViewBag是一回事,只能在当前View中有效
TempData里的值可以RedirectToAction跳转Controller或Action依然有效,等这次http请求结束后,TempData被清空
Powered by: 博客园 Copyright © 2024 billpeng Powered by .NET 8.0 on Kubernetes