How to configure properties in .NET 4 to accomplish different goals.
Disable view state for a page, but enable it for specified control
Page Enable ViewState: True
Page ViewStateMode: Disabled
Control Enable ViewState: True
Control ViewState Mode: Enabled
Disable view state for a page and disable it for a specific control
Page Enable ViewState: True
Page ViewStateMode: Disabled
Control Enable ViewState: False
Control ViewState Mode: Disabled od Inherit
Enable view state for a page, but disable it for a specific control
Page Enable ViewState: True
Page ViewStateMode: Enabled
Control Enable ViewState: False
Control ViewState Mode: Disabled
Enable view state for a page and for a control Page Enable ViewState: True
Page ViewStateMode: Enabled
Control Enable ViewState: True
Control ViewState Mode: Enabled or Inherit
Source: MCTS Self-Paced Training Kit (Exam 70-515): Web Applications Development with Microsoft .NET Framework 4 (Mcts 70-515 Exam Exam Prep)
0 comments:
Post a Comment