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
What is OSI layer? Explain different layers.
In which event of page cycle is the viewstate available?
Explain global assembly cache.
What are different types of authentication techniques that are used in connection strings to connect .net applications with microsoft sql server?
What is globalization and localization in asp net?
What is ipostback?
Am not able to move the controls on the form freely in asp.net 3.5 even though I selected the position as relative or absolute for those controls. What should I do to overcome this?
Is asp.net free?
What is class and object in asp.net?
Write a code snippet to implement the indentation in json in web api.
How do session tokens work?
How is it possible for .NET to support many languages?
Can one dll file contains the compiled code of more than one .net language?
Is global asax mandatory?
Why is xap important?