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



You create an ASP.NET application for a hotel. The application contains a page that displays curren..

Answer / js_m

C

Is This Answer Correct ?    3 Yes 0 No

You create an ASP.NET application for a hotel. The application contains a page that displays curren..

Answer / prasath

C . <%@ OutputCache Duration="600" VaryByParam="None" %>

Is This Answer Correct ?    2 Yes 0 No

Post New Answer

More ASP.NET Interview Questions

hi all, can we sort the data set without using the gridview sort method

1 Answers   CGI,


What are the advantages and limitations of query string?

0 Answers  


Describe the diffeerence between inline and code behind - which is best in a loosely coupled solution?

0 Answers  


How many types of session in ASP.NET

0 Answers   MCN Solutions,


Suggest 3 best practices in detail for for Developing High Performance Web and Enterprise Applications

2 Answers   Techno Solutions,






What is autopost?

0 Answers  


explain code with multi inhertance

0 Answers  


What is postback in asp net?

0 Answers  


Which dll handles the request of .aspx page?

0 Answers  


How can I create master page in asp net?

0 Answers  


From which base class all web forms are inherited?

0 Answers  


Are xaml file compiled or built on runtime?

0 Answers  


Categories