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


Please Help Members By Posting Answers For Below Questions

Explain a program using razor view engine to create a simple application? : asp.net mvc

589


How we implement the multiple paypal value with gridview in my website and how we make a payment through Credit Card.

1520


Explain diff. Between friend and protected friend?

588


What do you mean by caching in asp.net?

638


How do I use a proxy server when invoking a web service?

609






What are the different authentication modes in asp.net?

614


Why do we use sessions?

670


What is difference between or and orelse?

631


What are assemblies and namespaces and explain the difference between them ?

670


Explain how can you debug your .net application?

620


What setting must be added in the configuration file to deny a particular user from accessing the secured resources?

588


How is it possible for .NET to support many languages?

386


To add a hyperlink column to the DataGrid which tag is used ?

663


How do I upload a file from my ASP.NET page?

682


Why is global asax is used for?

601