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

What are the Difference between asp.net and asp ?

0 Answers  


how to elimainte the similar data from the different tables

0 Answers  


How is application management and maintenance improved in asp.net 2.0?

0 Answers  


What is slidemaster?

0 Answers  


I have been asked in an interview What is your LOC(Line of Code)What will be the probable answer for that

1 Answers   HCL, Infosys, Mantec Consultants,






Why session is more secure than cookies?

0 Answers  


What is preprocessor in .net?

0 Answers  


What is the name of the process the browser uses to find the address of a web server? a) DMZ b) DNS c) Active Directory d) Database lookup

1 Answers   Syntax Softtech,


What is the concept of view state in asp.net?

0 Answers  


What are the main requirements for caching?

0 Answers  


About Usage of server variables ?

2 Answers   Cognizant, CTS,


How do you add a javascript function for a link button in a datagrid ?

4 Answers   Microsoft,


Categories