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 |
What are the Difference between asp.net and asp ?
how to elimainte the similar data from the different tables
How is application management and maintenance improved in asp.net 2.0?
What is slidemaster?
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?
What is preprocessor in .net?
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
What is the concept of view state in asp.net?
What are the main requirements for caching?
About Usage of server variables ?
How do you add a javascript function for a link button in a datagrid ?