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
How do you use viewstate?
Explain the difference between webfarm and webgardens in .net?
How can you implement encapsulation in asp.net?
Define resource files.
What are the event handlers that can be included in the Global.asax file?
What is the difference between custom web user control and a custom web server control?
What do you mean by serialize and marshalbyref?
What are the different properties of server control that exists?
Can action method static?
what is loosely coupled solution? How it can be used?
Explain different types of validators in asp.net?
What is odata in web api?
How do I create a web form?
Name the namespace which is used by ado.net?
What are the elements of a website?