ViewState的VS饼干VS兑现VS会议 [英] ViewState vs cookies vs cashing vs sessions

查看:131
本文介绍了ViewState的VS饼干VS兑现VS会议的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我们使用的ViewState或饼干或兑现或会在哪里,我们存储的信息?我知道,当我们使用会话,我们可以存储在SQL Server或Web服务器的数据。有我们,当我们在使用会话存储数据的任何其他方式。

When we are using ViewState or cookies or cashing or sessions where are we storing the information? I know when we use sessions we can store data in sql server or web server. is there any other way we store data when we are using sessions.

还有一个问题,当我从SQL Server获取数据,并将其绑定到数据集或数据表,其中的数据将存储(数据集的记录)?

One more questions when i get the data from sql server and bind it to the dataset or datatable where that data is going to store(the dataset records)?

推荐答案

视图状态存储在制作HTML(隐藏字段),缓存存储在内存中,但与输出缓存提供可以使自定义存储缓存数据,请参见位置: http://msdn.microsoft.com/en-us/library/ms178597的.aspx

Viewstate is stored in produced html (hidden field), cache is stored in memory, but with Output-cache provider one can make custom storage for cached data, see here : http://msdn.microsoft.com/en-us/library/ms178597.aspx

会话数据默认情况下也被存储在存储器中(进程内),但你可以使用SQL Server或国家的服务器作为存储会话数据。如果您使用状态服务器,会话数据再次存储在内存中,但在另一个进程,以便状态服务器会话数据可以拯救你的Web应用程序的重新启动。

Session data is by default stored also in memory (inproc), but you can use Sql server or State server as a storage for session data. If you use State Server, session data is again stored in memory, but in another process so State Server session data can survive restart of your web application.

您可以在这里看到的细节: http://msdn.microsoft.com/ EN-US /库/ ms178586.aspx

You can see details here : http://msdn.microsoft.com/en-us/library/ms178586.aspx

这篇关于ViewState的VS饼干VS兑现VS会议的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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