初学者的状态管理 [英] State Managemant For Beginners

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

问题描述

大家好,



我是ASP.NET的新手(网络开发)我想彻底学习国家管理,任何人都可以为初学者推荐最好的文章。我想知道为什么我们在深处使用这个东西,何时使用

客户端状态mgt何时使用服务器状态mgt以及为什么??





问候

拉曼

Hi All ,

I am new with ASP.NET (web development) I want to learn State management thoroughly , can anyone suggest the best article for beginners. I want to know why we use this thing in deep, when to use
Client state mgt when to use Server state mgt and why ??


Regards
Raman

推荐答案

请参阅以下链接



ASP.NET状态管理概述 [ ^ ]



ASP.NET状态管理的初学者教程 [ ^ ]



初学者国家管理简介ASP.NET中的技术 [ ^ ]



:doh:[已编辑]



ASP.NET中的状态管理 [< a href =http://www.c-sharpcorner.com/uploadfile/nipuntomar/state-management-in-Asp-Net/target =_ blanktitle =New Window> ^ ] < br $> b $ b

客户端状态管理对象 [ ^ ]





这些就够了。



问候..:)
Refer to below links

ASP.NET State Management Overview[^]

A Beginner's Tutorial on ASP.NET State Management[^]

Beginners Introduction to State Management Techniques in ASP.NET[^]

:doh:[EDITED]

State Management in ASP.NET[^]

Client-Side State Management Objects [^]


These will be enough for you.

Regards..:)


客户端:

查看状态 - Asp.Net使用View State追踪控件中的e值。您可以将自定义值添加到视图状态。 Asp.net页面框架使用它在呈现到页面之前自动保存页面和每个控件的值。发布页面时,页面处理执行的第一个任务之一是恢复视图状态。

控制状态 - 如果创建需要视图状态才能正常工作的自定义控件,则应使用控件状态以确保其他开发人员不会通过禁用视图来中断控制州。

隐藏字段 - 与视图状态类似,隐藏字段以HTML格式存储数据,而不在用户的浏览器中显示。只有在处理表单时才能使用该数据。

Cookies - Cookies在用户浏览器中存储一个值,浏览器将每个页面请求发送到同一服务器。 Cookie是存储必须可用于网站上多个网页的状态数据的最佳方式。

查询字符串 - 查询字符串存储URL中对用户可见的值。如果希望用户能够通过URL发送电子邮件或即时消息状态数据,请使用查询字符串。



服务器端:

申请状态 - 申请状态信息可用于所有页面,无论哪个用户请求页面。

会话状态 - 会话状态信息可供用户在一次访问期间打开的所有页面使用。

应用程序重启时,应用程序状态和会话状态信息都会丢失。要在应用程序重新启动之间保留用户数据,可以使用配置文件属性存储它。



请参阅以前所有答案中的参考资料这里 [ ^ ]他们通过示例了解更多详情。
Client Side:
View State – Asp.Net uses View State to track the values in the Controls. You can add custom values to the view state. It is used by the Asp.net page framework to automatically save the values of the page and of each control just prior to rendering to the page. When the page is posted, one of the first tasks performed by page processing is to restore view state.
Control State – If you create a custom control that requires view state to work properly, you should use control state to ensure other developers don’t break your control by disabling view state.
Hidden fields – Like view state, hidden fields store data in an HTML form without displaying it in the user's browser. The data is available only when the form is processed.
Cookies – Cookies store a value in the user's browser that the browser sends with every page request to the same server. Cookies are the best way to store state data that must be available for multiple Web pages on a web site.
Query Strings - Query strings store values in the URL that are visible to the user. Use query strings when you want a user to be able to e-mail or instant message state data with a URL.

Server Side:
Application State - Application State information is available to all pages, regardless of which user requests a page.
Session State – Session State information is available to all pages opened by a user during a single visit.
Both application state and session state information is lost when the application restarts. To persist user data between application restarts, you can store it using profile properties.

See the references in all previous answers here[^] they are having more details with examples.


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

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