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 soap?

5 Answers   Cognizant, Microsoft, NCR,


Define reflection in .net?

0 Answers  


what is the cursor

1 Answers   Wipro,


What is difference Between Authentication and authorization?

0 Answers   MCN Solutions,


What is data reader in asp.net?

0 Answers  






Why would anyone need to implement their own hashtable or linked list?

0 Answers  


Where session id is stored?

0 Answers  


How to retrieve the information from datatable citywise in c#?

2 Answers   HCL,


What is the main difference between grid layout and flow layout?

1 Answers  


What is ashx file in asp.net?

0 Answers  


Which library is used by the testers and developers to develop automated tests and create testing tools?

0 Answers  


after which page life cycle event all properties of control will be "fully loaded "

10 Answers   FactorH,


Categories