当前位置:在线题库搜索>[单选题]You have created an ASP.NET server control named Shopping Cart for use by other developers. Some developers report that the Shopping Cart control does not function properly with ViewState disabled. You want to ensure that all instances of the Shopping Cart control work even if View State is disabled. What should you do?()的答案是什么?

问题:

[单选题]You have created an ASP.NET server control named Shopping Cart for use by other developers. Some developers report that the Shopping Cart control does not function properly with ViewState disabled. You want to ensure that all instances of the Shopping Cart control work even if View State is disabled. What should you do?()

A、Require developers to set EnableViewStateMac to true.
B、Store state in ControlState instead of ViewState.
C、Serialize the state into an Application state entry called "MyControl".
D、Require developers to change the session state mode to SQLServer.

参考答案: B

相关内容