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 / dilip kumar
d
| Is This Answer Correct ? | 0 Yes | 4 No |
Post New Answer View All Answers
Define viewstate in .net?
How u refer webservices?
What is IPostBack? How to use it?
How does the service stream content?
What is http only cookie?
What are the steps involved to fill a dataset?
What is cross page posting in asp net?
What is state management technique?
How tooltip is set through code-behind in ASP.NET?
Explain the steps to be followed to use passport authentication.
How can you implement the postback property of an asp.net control?
What is routing in MVC?
What is asp.net with mvc? : Asp.Net MVC
What is the difference between server-side scripting and client-side scripting?
What is inheritance and an how it be used, example with an example?