那么视图状态的情况呢?
Do the same with another view state.
对另一个视图状态执行相同的操作。
There are a number of drawbacks to the use of view state, however.
然而使用视图状态也有一些缺点。
As an example of view state in action, try running the page shown in Figure 1.
作为一个活动的ViewState示例,尝试运行图1显示的页面。
It does not use view state or server-based forms.
它不使用视图状态或基于服务器的窗体。
Manages the view state of the activity designer and its underlying model items.
管理活动设计器及其基础模型项的视图状态。
Unfortunately, for these controls, you do not have the option of disabling the view state.
不幸的是,对于这些控件,你没有禁用视图状态的选择余地。
It USES view state on server-based forms, which can make managing state information easier.
它针对基于服务器的窗体使用视图状态,这使得管理状态信息更加轻松。
Using nonprintable characters to delineate the objects stored in view state serves two purposes.
使用非打印字符分割 ViewState中存储的对象有两个目的。
Second, and more importantly, it reduces the number of characters used to encode the objects in view state.
第二个,也是更重要的目的是它减少了为ViewState中的对象编码所使用的字符数量。
If we do the same in 2.0, the size of view state is reduced to 6,728 characters, a reduction of nearly half.
如果在2.0中也这样做,ViewState大小减少到6,728个字符,几乎减少了一半。
The exception to this is that some controls also use view state for behaviors as well as plain-state retention.
例外情况是,一些控件既使用ViewState保留行为,也保留一般状态。
It includes private view state (if any), and an identifier for any application view state saved in the session.
它包括私有视图状态(如果有),以及会话中保存的任何应用程序视图状态的标识符。
When saving view state, the page generates a string that represents the portion of view state that is sent to the client.
保存视图状态时,页生成一个字符串,用它表示视图状态中发送到客户端的部分。
The stored message is retrieved from PortletSession, when the portlet is in view state, as described in the following sections.
当Portlet 处于视图状态时,可以从PortletSession检索存储的消息,如以下部分所述。
There is also an additional overhead incurred when serializing or deserializing view state data that is posted back to the server.
对发回服务器的视图状态数据进行序列化或取消序列化时,也会发生额外的开销。
If you'd prefer to persist view state in session state for some pages but not for others, use the technique shown in Figure 4.
如果您更愿意将其中一些页面的视图状态保留在会话状态中而不保留其他页面的视图状态,请使用图4中显示的方法。
Unfortunately, if you want to use features like sorting, paging, or editing in the DataGrid, you cannot disable its view state.
遗憾的是,如果您想要使用DataGrid中诸如排序、分页或编辑的功能,则不能禁用其ViewState。
With view state, developers can focus on the programming model and user interaction without having to worry about retaining state.
使用ViewState,开发人员能够专注于编程模型和用户界面,而不用担心状态保持。
Deciding when to disable view state in your controls is obviously important if you are concerned about the size of your responses.
很明显,如果您关心响应大小,那么决定何时禁用控件的ViewState是重要的。
Note that this application relies on the character encodings currently used for view state which may change before the final release.
注意,这个应用程序依赖于目前ViewState使用的编码字符,在最终版本发布前可能会改变。
When the page is posted back to the server, the server can parse, validate, and apply this view state data back to the page's tree of controls.
当该页发回服务器时,服务器可以分析、验证、并将此视图状态数据应用回该页的控件树。
Seal line height, view state Tiao people, ethic Aniko. Well-known literary. Zhenguan in, the official board of rites doctor. Write a poem.
封行高,观州蓚人,伦之兄子。以文学知名。贞观中,官至礼部郎中。诗一首。
Because view state retains the previous value across the request, it will start with the last value displayed and show 1, 2, 3, 4, and so on.
因为ViewState在请求期间保持以前的值,因此它将从上一次显示的值开始,显示1、2、3、4等等。
Without doing anything special, you can look forward to an immediate reduction in the size of your view state with the release of ASP.NET 2.0.
随着 ASP.NET 2.0版本的发布,您能够期望立即减小ViewState大小,而无需做任何特别的工作。
If you are not doing postbacks in a page or are always regenerating the controls on a page on each request, you should disable view state at the page level.
如果您不发回页,或者总是针对每个请求重新生成页上的控件,则应该在页级别禁用视图状态。
In ASP.NET 2.0, cross-page Posting and server transfer offer a familiar programming model, but potentially move a significant chunk of data through the view state.
在ASP.NET 2.0中,cross - page posting和servertransfer提供了一个常见的编程模型,但却潜在地通过View State移动了大块的数据。
Before I jump into the improvements in view state in ASP.NET 2.0, a short summary of the purpose and implementation of view state in the current release is in order.
在介绍ASP.NET 2.0ViewState的改进之前,简要总结目前版本中ViewState的用途和实现是适宜的。
Before I jump into the improvements in view state in ASP.NET 2.0, a short summary of the purpose and implementation of view state in the current release is in order.
在介绍ASP.NET 2.0ViewState的改进之前,简要总结目前版本中ViewState的用途和实现是适宜的。
应用推荐