ViewStateMode vs EnableViewState

前端 未结 5 494
盖世英雄少女心
盖世英雄少女心 2020-12-29 18:34

What\'s the difference between:

  • ViewStateMode: Disabled / Enabled / Inherit
  • EnableViewState: True / False

It\'s in the properties of as

5条回答
  •  旧巷少年郎
    2020-12-29 18:50

    Here is a very useful article with a simple detailed example ASP.Net View State: EnableViewState vs ViewStateMode. The gist of it is:

    ViewStateMode property allows you to Disable View State at parent level and Enable it selectively at child level.

    EnableViewState property does not allow this.

    Both of these properties allow you to Enable view state at parent level and Disable it at child level.

提交回复
热议问题