ViewData在一个Action中有效,Action所指向的View上下文可任意访问,Controller的其他Aciton指向的View访问无效

 

TempData默认是基于Session存储的

TempData在任意View中有效,View上下文可任意访问,但在View中访问完则移除掉。

移除后,其他View再访问时变为空了。

相关文章:

  • 2021-11-22
  • 2021-07-14
  • 2022-12-23
  • 2022-03-03
  • 2021-07-30
  • 2021-07-18
猜你喜欢
  • 2021-05-24
  • 2022-12-23
  • 2022-01-24
  • 2021-10-21
  • 2021-08-01
  • 2022-02-15
相关资源
相似解决方案