Microsoft
70-515 · Question #52
You have created an ASP.NET server control named ShoppingCart for use by other developers. Some developers report that the ShoppingCart control does not function properly with ViewState disabled…
The correct answer is B. Store state in ControlState instead of ViewState. See the full explanation below for the reasoning.
Question
You have created an ASP.NET server control named ShoppingCart for use by other developers. Some developers report that the ShoppingCart control does not function properly with ViewState disabled. You want to ensure that all instances of the ShoppingCart control work even if ViewState is disabled. What should you do?
Options
- ARequire developers to set EnableViewStateMac to true.
- BStore state in ControlState instead of ViewState.
- CSerialize the state into an Application state entry called "MyControl"
- DRequire developers to change the session state mode to SQL Server.
How the community answered
(22 responses)- A5% (1)
- B77% (17)
- C14% (3)
- D5% (1)
Community Discussion
No community discussion yet for this question.