PrepAway - Latest Free Exam Questions & Answers

Which code fragment should you add to the Web.config file?

You create a Microsoft ASP.NET application by using the Microsoft .NET Framework version 3.5.
You plan to deploy the application to a test server.
You need to ensure that during the initial request to the application, the code-behind files for the Web pages are compiled. You also need to optimize the performance of the application.
Which code fragment should you add to the Web.config file?

PrepAway - Latest Free Exam Questions & Answers

A.
<compilation debug="true">

B.
<compilation debug="false">

C.
<compilation debug="true" batch="true">

D.
<compilation debug="false" batch="false">

Explanation:
ensure that during the initial request to the application, the code-behind files for the Web pages are compiled
is Batch="True" (Batch default=true)

You also need to optimize the performance of the application.
is Debug="false" (Debug default=false)


Leave a Reply