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.
可以创建多个视图并在它们之间切换,可以根据需要禁用和启用视图以显示和隐藏文件。
应用推荐