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 / js_m
C
Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What do you mean by serialize?
Explain why it is useful to use mvc instead of webforms? : asp.net mvc
Difference between using directive vs using statement?
How do you identify that the page is postback?
What are the modes of updation in an updatepanel? What are triggers of an updatepanel?
Explain the page lifecycle of an asp.net mvc? : asp.net mvc
How does asp page work?
Is viewstate secure?
Explain the difference between asp & asp.net.
How to fetch a data from one table to another table in asp.net ?
Error : The operation couldn’t be performed because ole db provider sqlncli10 for linked server was unable to begin a distributed transaction.00000110 oledb provider for linked server returned message the partner transaction manager has disabled its support for remote/network transactions. I can able to execute the stored procedure in sql server but when i run the web page getting error like above. I did all the configuration. what is the solution?
Why is this service branded with windows livetm?
What are navigation controls? How many navigation controls are there in ASP.NET 4.0?
What is difference between rest and soap?
Explain how cookies work.