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
Suppose You Want A Certain Asp.net Function Executed On Mouseover For A Certain Button. Where Do You Add An Event Handler?
What do you mean by serialize and marshalbyref?
Explain how caching in asp.net 2.0 is different from caching in asp.net 1.1?
Define static member?
What is the difference between session object and application object?
How would you turn off cookies on one page of your website?
Which data type does the rangevalidator control support?
Describe SOA and the tenets of it?
What is session and cookies in asp.net?
Define resource files.
Define viewstate in .net?
How to prevent client side validation from the ASP.NET validation controls?
Are cookies stored on server or client?
What is application variable in asp.net?
How do http sessions work?