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

What is the server of asp.net?

774


What is the use of autowireup in asp.net?

788


What is recordset asp?

772


What is the difference between the asp and asp.net?

735


Explain the working of passport authentication.

756


Explain the boxing and unboxing concept in .net?

619


What is application variable?

739


What is difference between asp.net and asp?

802


What is Model-View-View Model?

801


Explain Areas in MVC?

861


What is webresource axd?

682


When Cookies are expired in ASP.NET?

808


What is the use of response redirect in asp.net?

832


What is difference between Server.Transfer and Response.Redirect in ASP.NET?

827


What does session_start () do?

853