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


Please Help Members By Posting Answers For Below Questions

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?

1457


What are the namespace classes used in asp.net mvc? : asp.net mvc

542


Describe the diffeerence between inline and code behind?

507


What is considered a service provider?

513


What are the different types of sessions in asp.net?

488






What is a SESSION and APPLICATION object?

574


How do sessions work?

532


Explain cashing in asp.net.

523


How to disable disable browser's Back button in asp.net (JavaScript)?

562


Which method is used to enforce garbage collection in .net?

423


Explain the difference between web user control and web custom control?

534


What is the difference between client-side and server-side validations in ASP.NET?

656


What is & in a url?

527


What is data caching?

549


What is slidemaster?

464