asp点网中的状态管理 [英] state management in asp dot net

查看:75
本文介绍了asp点网中的状态管理的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是什么原因而不是在窗口应用程序中使用,而在Web应用程序中使用视图状态.请详细解释.

what is the reason of using view state in web application while it is not using in window application. plz explain in details.

推荐答案

正在执行 MSDN:ASP.NET状态管理概述 [ ASP.NET中的状态管理-1 [ ASP.Net状态管理技术-2 [ CP搜索结果 [ ^ ]& ^ ]
Doing this[^] would had helped a lot:
MSDN: ASP.NET State Management Overview[^]
State management in ASP.NET - 1[^]
ASP.Net State Management Techniques - 2[^]

CP Search results[^] & Google with CP[^]


对于这些一般性问题,您应该在发布前先搜索一下Google.

该论坛仅用于解决与编程相关的特定问题,而不是免费的在线软件培训中心...

如果您有任何特定的编程问题,请在此处发布,以及工作和代码段以及您面临的困难.

一些有用的参考资料...

http://www.w3schools.com/aspnet/aspnet_viewstate.asp [ http://msdn.microsoft.com/en-us/library/ms972976.aspx [ ^ ]

http://msdn.microsoft.com/en-us/library/bb386448.aspx [ ^ ]

初学者查看状态指南 [
For these general questions you should Google before you post..

This forum is for solving programming related specific questions and not a free online software training centre...

If you have any specific programming questions, then post here along with the efforts and code snippets and the difficulty you are facing..

Some useful references...

http://www.w3schools.com/aspnet/aspnet_viewstate.asp[^]

http://msdn.microsoft.com/en-us/library/ms972976.aspx[^]

http://msdn.microsoft.com/en-us/library/bb386448.aspx[^]

Beginner''s Guide To View State [^]

Once you go through the links, you will know why Viewstate is required in web apps.


Asp.net中状态管理的不同类型

会话->用于存储信息,三种不同的类型

Inproc->存储信息,而无需IIS重置或工作进程回收.它会被擦除.
Sqlserver->存储信息,无需IIS重置或工作进程回收,还可以维护其他工作进程.支持Web场和花园配置(aspnet_state).

Stateserver->将会话存储在Sql Server中.

查看状态->用于以加密格式在特定页面中存储信息.

隐藏字段->用于以加密格式在隐藏字段中存储信息,您可以访问另一个页面.

应用程序对象->用于存储信息,并在整个应用程序中共享.
Different types of the state management in Asp.net

Session-->Used to store a information, three different types

Inproc -->Store information, Without IIS Reset or worker process recycle. it will be erase.
Sqlserver-->Store information, Without IIS Reset or worker process recycle and also maintain the different worker process.Support a web farm and garden configuration(aspnet_state).

Stateserver -->Store session in Sql server.

View state-->Used to store information in encrypted format in a particular page.

Hidden field-->Used to store information in encrypted format in a hidden field ,you can access another page.

Application objects --> Used to stored information and also shared across the entire application.


这篇关于asp点网中的状态管理的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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