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.

Answers were Sorted based on User's Feedback



Your ASP.NET application displays sales data on a page. You want to improve performance by holding ..

Answer / js_m

C

Is This Answer Correct ?    4 Yes 0 No

Your ASP.NET application displays sales data on a page. You want to improve performance by holding ..

Answer / sadanandam

c

Is This Answer Correct ?    3 Yes 0 No

Your ASP.NET application displays sales data on a page. You want to improve performance by holding ..

Answer / 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

Your ASP.NET application displays sales data on a page. You want to improve performance by holding ..

Answer / pooja shukla

D

Is This Answer Correct ?    0 Yes 3 No

Your ASP.NET application displays sales data on a page. You want to improve performance by holding ..

Answer / dilip kumar

d

Is This Answer Correct ?    0 Yes 4 No

Post New Answer

More ASP.NET Interview Questions

what is state management in ASP.NET

2 Answers   MCN Solutions,


Can we throw exception from catch block ?

4 Answers   Accenture, BirlaSoft,


What is data caching?

0 Answers  


What is difference between ASP and ASP.NET ?

3 Answers   TCS,


What is the parent class of all the web server control?

0 Answers  






Explain the procedure to handle the process request using mhpm events fired? : asp.net mvc

0 Answers  


Is it possible to write code in many languages in one asp.net project?

0 Answers  


What is actually returned from server to the browser when a browser requests an .aspx file and the file is displayed?

0 Answers   MindCracker,


What are directives in asp.net?

0 Answers  


What are the main requirements for caching?

0 Answers  


What is the server of asp.net?

0 Answers  


What is connection pooling and how to enable and disable connection pooling?

0 Answers  


Categories