PrepAway - Latest Free Exam Questions & Answers

What should you do?

You develop Web-based client applications. You are developing a custom Web control named ShoppingCart. The ShoppingCart control tracks the products in a users shopping cart. The ShoppingCart control contains a read-only property named SubTotal. The pages that use the ShoppingCart control compare the SubTotal property with the users credit limit before attempting to add any new items to the users shopping cart. The ShoppingCart control also contains display properties, such as Font, Color, and DisplayDirections. These properties are not critical to the functionality of the control. You need to establish how to implement the SubTotal property and the display properties in the ShoppingCart control. What should you do?

PrepAway - Latest Free Exam Questions & Answers

A.
Use the ControlState state to persist the SubTotal property and the ViewState state to persist the display properties.

B.
Use the ViewState state to persist the SubTotal property and the ControlState state to persist the display properties.

C.
Retrieve the value for the SubTotal property from the database, and persist the display properties by using the ControlState state.

D.
Use the ViewState state to persist the SubTotal property, and persist the display properties by using the ViewState.


Leave a Reply