如果您不发回页,或者总是针对每个请求重新生成页上的控件,则应该在页级别禁用视图状态。
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.
这是十分基本的。这仅仅判断ISBN编号的值是否为空的,同时在导航栏上禁用除删除控件外的所有其它控件-如果ISBN编号不为空的话,启用全部控件。
Basically, this just determines whether or not the ISBN value is empty, and disables all of the viewer controls except Delete if so - otherwise, it enables them all.
Swing控件现在可以提供听觉反馈来对特定事件作出响应,不过缺省情况下这项功能是禁用的。
Swing controls can now provide auditory feedback in response to specific events, though this functionality is disabled by default.
很明显,如果您关心响应大小,那么决定何时禁用控件的ViewState是重要的。
Deciding when to disable view state in your controls is obviously important if you are concerned about the size of your responses.
不幸的是,对于这些控件,你没有禁用视图状态的选择余地。
Unfortunately, for these controls, you do not have the option of disabling the view state.
如果不能用于当前选择,工具栏控件应该被禁用,它们一定不能提供模棱两可的状态。
Toolbar controls should become disabled if they are not applicable to the current selection.
您还可以禁用验证控件,以使它根本不在页面上呈现并且不进行使用该控件的验证。
You can also disable a validation control so that it is not rendered to the page at all and no validation takes place using that control.
禁用视觉样式可能会影响应用程序中其他控件的外观和行为。
Disabling visual styles might affect the appearance and behavior of other controls in your application.
在将文档的缩放设置更改为100%之外的其他任何值时,将禁用文档中的控件。
Controls on a document are disabled when you change the zoom setting of the document to anything other than 100%.
默认情况下启用所有服务器控件的视图状态,但在有些情况下需要禁用视图状态。
View state is enabled for all server controls by default, but there are circumstances in which you will want to disable it.
默认情况下启用所有服务器控件的视图状态,但在有些情况下需要禁用视图状态。
View state is enabled for all server controls by default, but there are circumstances in which you will want to disable it.
应用推荐