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
How you can add an event handler?
What are uri parameters?
What is the use of ASP.NET routing?
Can we have multiple web config files for an asp.net application?
What is the use of session?
What's the ASP.Net Application life cycle?
What is the difference between executescalar and executenonquery?
What is server side routing?
How to add DateTime Control in normal DataGrid Server Control?
Explain the difference between an exe and a dll?
What are the merits and demerits of viewstate?
How can we create pie chart in asp.net?
Are there resources online with tips on asp to asp.net conversions?
Define xmlvalidatingreader class.
What are validator? Name the validation controls in asp.net? How do you disable them? Will the asp.net validators run in server side or client side? How do you do client-side validation in .net? How to disable validator control by client side javascript?