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
I want to connect a system in LAN and I want to access that. Whenever I am moving a mouse in my desktop, the similar thing has to happen in another system in which I have connected. I need coding for this in C# and ASP.NET Can anyone please help me. It is very urgent. Thanks in advance. My email id is manojkumarchallagundla@gmail.com Will you please?
What are the namespace classes used in asp.net mvc? : asp.net mvc
Describe the diffeerence between inline and code behind?
What is considered a service provider?
What are the different types of sessions in asp.net?
What is a SESSION and APPLICATION object?
How do sessions work?
Explain cashing in asp.net.
How to disable disable browser's Back button in asp.net (JavaScript)?
Which method is used to enforce garbage collection in .net?
Explain the difference between web user control and web custom control?
What is the difference between client-side and server-side validations in ASP.NET?
What is & in a url?
What is data caching?
What is slidemaster?