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" %>
Answers were Sorted based on User's Feedback
Answer / prasath
C . <%@ OutputCache Duration="600" VaryByParam="None" %>
Is This Answer Correct ? | 2 Yes | 0 No |
Explain Apache web servers ? How can you get ASP.NET running in Apache web servers - why should you do this?
what is the deference between dataset and data adapter?
What are the advantages and disadvantages of viewstate ?
How do I debug an ASP.NET application that wasn't written with Visual Studio.NET and that doesn't use code-behind?
What is the lifespan for items stored in ViewState?
What’s the difference between response .redirect and server.transfer?
i want to implement grid view value in paypal site. so how to create this code in asp.net with C#
What language does asp.net use?
Less than one page, how many windows will you be able to maintain?
Which methods validate all the controls on a page?
Describe session handling in a webfarm?
What is viewstate parameter?