ViewState的VS饼干VS兑现VS会议饼干、会议、ViewState、VS

由网友(把回忆锁好)分享简介:当我们使用的ViewState或饼干或兑现或会在哪里,我们存储的信息?我知道,当我们使用会话,我们可以存储在SQL Server或Web服务器的数据。有我们,当我们在使用会话存储数据的任何其他方式。When we are using ViewState or cookies or cashing or session...

当我们使用的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

阅读全文

相关推荐

最新文章