Which of the following actions will he take to accomplish the task?

Posted by: Pdfprep Category: GSSP-.NET Tags: , ,

John works as a Web Developer for ProLabs Inc. He develops an ASP.NET application, named

MyWebApp1, using Visual Studio .NET. One of the pages in the application is named as Page1.aspx, which does not need to maintain session state. To improve the performance of the application, John wants to disable session state for Page1.

Which of the following actions will he take to accomplish the task?
A . Set the EnableViewState attribute in the @ Page directive to false.
B . Set the DisableSessionState attribute in the @ Page directive to true.
C . In the sessionState configuration section of the application’s Web.config file, set the mode attribute to off.
D . Set the EnableSessionState attribute in the @ Page directive to false.

Answer: D

Leave a Reply

Your email address will not be published.