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.
Answers were Sorted based on User's Feedback
Answer / 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 |
what is state management in ASP.NET
Can we throw exception from catch block ?
4 Answers Accenture, BirlaSoft,
What is data caching?
What is difference between ASP and ASP.NET ?
What is the parent class of all the web server control?
Explain the procedure to handle the process request using mhpm events fired? : asp.net mvc
Is it possible to write code in many languages in one asp.net project?
What is actually returned from server to the browser when a browser requests an .aspx file and the file is displayed?
What are directives in asp.net?
What are the main requirements for caching?
What is the server of asp.net?
What is connection pooling and how to enable and disable connection pooling?