asp.net-mvc - 有没有办法在 asp.net mvc 中做闪存数据?

标签 asp.net-mvc session flashvars

有关我的意思的更多信息,引用自 php mvc 框架 CodeIgniter 的用户指南

CodeIgniter supports "flashdata", or session data that will only be available for the next server request, and are then automatically cleared. These can be very useful, and are typically used for informational or status messages (for example: "record 2 deleted").

..我需要这样的东西

最佳答案

请检查asp.net mvc 中的TempData。 Phil Haack 的解释 here

关于asp.net-mvc - 有没有办法在 asp.net mvc 中做闪存数据?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/1421354/

相关文章:

c# - 将单选按钮的选定值绑定(bind)到模型属性

c# - "&"字符破坏了存储在 web.config 中的密码

c# - C#中的 session 超时问题

apache-flex - 作为应用程序参数传递时,Flex + 字符被空白替换

c# - 在 ASP.NET MVC 和 Azure AD 中创建自定义用户角色

asp.net-mvc - 在IF语句中填充Viewmodel?

python - 存储一个连接实例 - twisted.web

php - CMS 变得简单 : Session getting reset between page views

mysql - as2,和“;在文本文件中停止读取文本

actionscript-3 - AS3 将 FlashVars 传递给加载的 swf