Your ASP.NET application displays sales data on a page. You
want to improve performance by holding the page in memory on
the server for one hour. You want to ensure that the page is
flushed from memory after one hour, and that the page is
re-created when the next request for the page is received.
What should you do?
A . Initialize a new instance of the Cache class in the
Application.Start event handler.
B . Initialize a new instance of the Timer class in the
Page.Load event handler.
C . Set the Duration attribute of the OutputCache directive
in the page.
D . In the Web.config file, set the timeout attribute of the
sessionState element.

Answer Posted / siva

C Because entire page is stored in output cache. If u stored
in session not only maintain this page, but also sotred all
values in session.

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Write a code snippet to implement the indentation in json in web api.

802


How is it possible for .NET to support many languages?

505


Just by seeing the signature of the bean how can you specify whether it is a stateful or stateless session bean?

762


Explain diff. Betn dataset and recordset?

758


Is it possible to change the index of primary key on table?

643


What is cache in asp net?

741


What is the difference between Classic ASP and ASP.Net?

798


What are sessions in asp net?

759


How can you identify that the page is post back?

780


What are the 3 types of web?

690


What are session state modes? List some of the important session state modes of asp.net.

724


What is Web Server Control Templates.?

801


What are the main differences between asp and asp.net?

754


What are the ways of preserving data on a Web Form in ASP.NET?

832


What are the advantages of Web API?

852