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
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 |
What are Session states available and its Uses?
Which method is used to force all the validation controls to run?
How would you enable impersonation in the web.config file?
What are the built-in objects in asp.net?
How do you access individual items of an Master Page
Is it possible to perform data validations in the database?
When does the application ONEND event handler fire?
1 Answers C Squared Systems, Verinon Technology Solutions,
What is anonymous authentication?
hi guys do u know how to go one page to one page to another page plz tell me any of u know
What is a web api?
In how many ways we can retrieve table records count?
Define web services in asp.net.