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
Write a code snippet to implement the indentation in json in web api.
How is it possible for .NET to support many languages?
Just by seeing the signature of the bean how can you specify whether it is a stateful or stateless session bean?
Explain diff. Betn dataset and recordset?
Is it possible to change the index of primary key on table?
What is cache in asp net?
What is the difference between Classic ASP and ASP.Net?
What are sessions in asp net?
How can you identify that the page is post back?
What are the 3 types of web?
What are session state modes? List some of the important session state modes of asp.net.
What is Web Server Control Templates.?
What are the main differences between asp and asp.net?
What are the ways of preserving data on a Web Form in ASP.NET?
What are the advantages of Web API?