动作之间保存状态 [英] Saving state between actions

查看:132
本文介绍了动作之间保存状态的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想问一个解决方案。例如,我们有一个页面。我有从该页面到另一个动作的链接。我想有保存页面上输入数据的值的能力。
比如我去另外一个页面中输入数据并返回。像向导。但问题是,我们可以得出不同的页面的操作。它需要保存几种数据类型。

I'd like to ask for a solution. For example we have a page. And I have a link to a another action from this page. I want to have an ability to save the values of entered data on the page. For instance I go to another page enter data and go back. Like the wizard. But the problem is that we can come to the action from different pages. And it need to save several data types.

是不是明白了吗?
有什么建议?

Is it understand? Any suggestions?

我想有共同的解决办法....

I'd like to have common solution....

推荐答案

您也可以使用 TempData的坚持之间的数据请求。

You could also use TempData to persist data between requests.

这篇关于动作之间保存状态的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆