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
Can you use c# without .net?
What is applicatio domain?
Explain about the .NET framework?
What is a 1x1 pixel?
Which is faster viewbag or viewdata?
What are query strings used for?
What is the size of Get method and how much data it can store?
Explain different authentication modes in asp.net?
By default, Web API sends HTTP response with which of the following status code for all uncaught exception?
How to find last error which occurred?
How do you secure your configuration files to be accessed remotely by unauthorized users?
What is AutoEventWireup attribute for ?
What is an assembly? Explain its parts.
What are Caching techniques in .NET
What are app services?