You create an ASP.NET application for a hotel. The
application contains a page that displays current weather
conditions for the city in which the hotel is located. The
application calls an XML Web service every 10 minutes to
update the current weather conditions. A new page is then
displayed for subsequent requests.
You want the same page to be cached and retrieved from the
cache during the time between calls to the XML Web service.
You decide to use a Page directive to accomplish this goal.
Which Page directive should you use?
A . <%@ Cache Seconds="600 '' VaryByParam="Page" %>
B . <%@ OutputCache Time="600" %>
C . <%@ OutputCache Duration="600" VaryByParam="None" %>
D . <%@ OutputCache Duration="600" %>

Answer Posted / prasath

C . <%@ OutputCache Duration="600" VaryByParam="None" %>

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Define session in asp.net.

561


How ASP and ASP.NET page works? Explain about asp.net page life cycle?

583


What is the difference between asp.net mvc and asp.net webforms? : asp.net mvc

539


What is the difference between “Web.config” and “Machine.Config”?

697


How can you handle unmanaged code exceptions in asp.net?

548






What is a gridview in asp.net?

525


What are web server controls in asp.net?

551


Describe the diffeerence between inline and code behind - which is best in a loosely coupled solution?

619


What is the difference between Hash table and Array list?

373


What is asp.net mvc5? : Asp.Net MVC

534


Where sessions are stored in asp.net?

534


Which methods validate all the controls on a page?

548


What are sharepoint pages?

494


What is the difference between session.abandon() vs clear()?

544


Can we use a static function with a non-static variable?

506