为什么要在ASP.NET应用程序中使用独立存储? [英] Why use isolated storage in an ASP.NET application?

查看:122
本文介绍了为什么要在ASP.NET应用程序中使用独立存储?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要存储在每页的基础上在我的应用程序用户preferences。例如,一些网页使用需要保持回发之间的当前页面大小的自定义网格寻呼机控制。大多数的设置不需要一旦用户离开网页以持续,但在某些情况下它们确实需要被恢复。 注意:会话处于这个应用程序禁用,将不能使用

我做独立存储一些阅读和理解,它可以被用来存储这些用户设置。显然,饼干已经存在了很长一段时间,是一个行之有效的方法来此方案,而是孤立的存储是什么?难道要为所有的浏览器,并在所有环境下工作?有权限的问题?是否需要对最终用户端配置什么吗?它是多么的广泛使用?为什么要使用隔离存储在应用程序中给出的例子?

谢谢!


解决方案

  

显然饼干一直围绕着
  很长一段时间,是一个行之有效的方法
  这种情况下,而是孤立的东西
  存储?难道要为所有工作
  浏览器和在各种环境中?


啊 - .NET独立存储是服务器端。如数据库。它的目的是为存储在旁边少量数据(一个用户,不是所有的用户,视图状态)一条小路上的.NET应用程序运行(在asp.net情况下=服务器)。

因此​​,它是完全不相关的你的问题。

把i的数据的数据库。我知道ASP.NET应用程序隔离stoage很少用法,它craetes的长期问题一吨。这并不意味着对服务器端的应用程序。

I need to store user preferences on a per page basis in my application. For example, several pages use a custom grid pager control that needs to keep its current page size between postbacks. Most of the settings don't need to persist once the user leaves the page, but in some situations they do need to be restored. Note: Session is disabled in this application and will not be used.

I did some reading on isolated storage and understand that it can be used to store these user settings. Obviously cookies have been around a long time and are a proven approach to this scenario, but what about isolated storage? Is it going to work for all browsers and in all environments? Are permissions a problem? Does it require configuring anything on the end-user's side? Just how widely used is it? Why should one use isolated storage in an application for the given example?

Thanks!

解决方案

Obviously cookies have been around a long time and are a proven approach to this scenario, but what about isolated storage? Is it going to work for all browsers and in all environments?

Ah - .NET isolated storage is SERVER SIDE. Like a database. It is meant as a small way to store small amounts of data( ONE user, not all users, viewstate) on the side the .NET application runs (in asp.net case = the server).

As such it is totally irrelvant to your question.

Put the data i a database. I know of VERY few usages of isolated stoage for ASP.NET applications, it craetes a TON of long term problems. It is not meant for server side apps.

这篇关于为什么要在ASP.NET应用程序中使用独立存储?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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