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 / js_m

C

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What do you mean by serialize?

549


Explain why it is useful to use mvc instead of webforms? : asp.net mvc

597


Difference between using directive vs using statement?

510


How do you identify that the page is postback?

541


What are the modes of updation in an updatepanel? What are triggers of an updatepanel?

509






Explain the page lifecycle of an asp.net mvc? : asp.net mvc

438


How does asp page work?

546


Is viewstate secure?

514


Explain the difference between asp & asp.net.

550


How to fetch a data from one table to another table in asp.net ?

581


Error : The operation couldn’t be performed because ole db provider sqlncli10 for linked server was unable to begin a distributed transaction.00000110 oledb provider for linked server returned message the partner transaction manager has disabled its support for remote/network transactions. I can able to execute the stored procedure in sql server but when i run the web page getting error like above. I did all the configuration. what is the solution?

1905


Why is this service branded with windows livetm?

609


What are navigation controls? How many navigation controls are there in ASP.NET 4.0?

539


What is difference between rest and soap?

578


Explain how cookies work.

596