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
How you can stop the validation of ASP.NET controls from client side?
Whta are the Various steps taken to optimize a web based application (caching, stored procedure etc.) ?
What is a pixel url?
What is virtual directory in asp.net?
What are the server controls in asp.net?
How can we access static variable?
What is gridview in asp.net?
How to fetch a data from one table to another table in asp.net ?
What is the use of dispose method?
Which is faster viewdata or viewbag?
What are the Types of session management in ASP.NET
How can we inherit a static member?
Can we have a web application running without web.config file?
what are the Custom controls in asp.net?
We are using Jscriopt validations and at clint site javascript is not running that time validation would work? if yes then how it would behave?