如何保存和显示临时记录而不将数据库保存在mvc中 [英] How to Save And Display The Temporary Records Without save the database in mvc

查看:48
本文介绍了如何保存和显示临时记录而不将数据库保存在mvc中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨!

请提供答案

这是我的问题请给我快速重播





谢谢

Hi!
Please Provide A Answer
This Is My Question Please Give Me Replay Fast


Thanks

推荐答案

如果数据不是太大,那么你可以利用HTML5本地存储。

HTML5存储 [ ^ ]

否则

将数据存储在一个视图包中,并提及action方法的OutPutCache属性。这还允许您设置将数据存储在缓存中的持续时间。你可以利用这个。

使用MVC进行缓存 [ ^ ]

我希望这会有所帮助。

回复你的查询任何。

谢谢..:)
If the data is not too huge, then you can take advantage of HTML5 Local storage.
HTML5 Storage[^]
Else
store the data in a viewbag, and mention the OutPutCache attribute on the action method. This also allows you to set the duration to store the data in cache. You can take advantage of this.
Caching using MVC[^]
I hope this helps.
Post back your queries if any.
Thanks.. :)


这篇关于如何保存和显示临时记录而不将数据库保存在mvc中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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