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
Define session in asp.net.
How ASP and ASP.NET page works? Explain about asp.net page life cycle?
What is the difference between asp.net mvc and asp.net webforms? : asp.net mvc
What is the difference between “Web.config” and “Machine.Config”?
How can you handle unmanaged code exceptions in asp.net?
What is a gridview in asp.net?
What are web server controls in asp.net?
Describe the diffeerence between inline and code behind - which is best in a loosely coupled solution?
What is the difference between Hash table and Array list?
What is asp.net mvc5? : Asp.Net MVC
Where sessions are stored in asp.net?
Which methods validate all the controls on a page?
What are sharepoint pages?
What is the difference between session.abandon() vs clear()?
Can we use a static function with a non-static variable?