John works as a Software Developer for CyberTech Inc. He creates an ASP .NET page named BookItemList.aspx, which displays a price list of computer books. Registered users have to first log on to the company’s Web site in order to view the current price list of different computer books available on the Web site. Users want to maintain the page requests as long as they are accessing the Web page. John wants to ensure that whenever the Web page BookItemList.aspx is posted back to the server, the price list should not be changed on the registered user’s computer. He also wants to validate the page sent back to the server. Which of the following actions will John take to accomplish the task? Each correct answer represents a part of the solution. Choose two.
A. Set the EnableEventValidation attribute to false.
B. Set the EnableEventValidation attribute to true.
C. Set the EnableViewState attribute to true.
D. Set the EnableViewState attribute to false.
Answer:B
John works as a Software Developer for CyberTech Inc. He creates an ASP .NET page named BookItemList.aspx, which displays a price list of computer books. Registered users have to first log on to the company’s Web site in order to view the current price list of different computer books available on the Web site. Users want to maintain the page requests as long as they are accessing the Web page. John wants to ensure that whenever the Web page BookItemList.aspx is posted back to the server, the price list should not be changed on the registered user’s computer. He also wants to validate the page sent back to the server. Which of the following actions will John take to accomplish the task? Each correct answer represents a part of the solution. Choose two.
A. Set the EnableEventValidation attribute to false. B. Set the EnableEventValidation attribute to true. C. Set the EnableViewState attribute to true. D. Set the EnableViewState attribute to false.