Deciding when to disable view state in your controls is obviously important if you are concerned about the size of your responses.
很明显,如果您关心响应大小,那么决定何时禁用控件的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.
如果您不发回页,或者总是针对每个请求重新生成页上的控件,则应该在页级别禁用视图状态。
You can create multiple views and switch among them, and you can disable and enable a view to reveal and hide files as necessary.
可以创建多个视图并在它们之间切换,可以根据需要禁用和启用视图以显示和隐藏文件。
Unfortunately, if you want to use features like sorting, paging, or editing in the DataGrid, you cannot disable its view state.
遗憾的是,如果您想要使用DataGrid中诸如排序、分页或编辑的功能,则不能禁用其ViewState。
You can now select these features in the Install Configuration view and disable them.
现在您可以在InstallConfiguration视图中选择这些功能部件并禁用它们。
Editors working on the fly from mobile devices will have to click a link reading "View this page on main Wikipedia" to disable the redirect.
通过移动设备工作的编辑者必须点击“Viewthispageonmain Wikipedia”来取消这种重定向。
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.
默认情况下启用所有服务器控件的视图状态,但在有些情况下需要禁用视图状态。
应用推荐