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

Explain Apache web servers ? How can you get ASP.NET running in Apache web servers - why should you do this?

0 Answers   Siebel,


what is the deference between dataset and data adapter?

4 Answers   TCS,


What are the advantages and disadvantages of viewstate ?

1 Answers  


How do I debug an ASP.NET application that wasn't written with Visual Studio.NET and that doesn't use code-behind?

1 Answers  


What is the lifespan for items stored in ViewState?

2 Answers   ISST,


What’s the difference between response .redirect and server.transfer?

0 Answers  


i want to implement grid view value in paypal site. so how to create this code in asp.net with C#

0 Answers  


What language does asp.net use?

0 Answers  


Less than one page, how many windows will you be able to maintain?

0 Answers   Atos Origin,


Which methods validate all the controls on a page?

0 Answers  


Describe session handling in a webfarm?

0 Answers  


What is viewstate parameter?

0 Answers  


Categories