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 / pooja shukla
D
| Is This Answer Correct ? | 0 Yes | 3 No |
Post New Answer View All Answers
What is inproc mode in session?
What is the asp.net control toolkit?
How will you do windows authentication and what is the namespace? If a user is logged under integrated windows authentication mode, but he is still not able to logon, what might be the possible cause for this? In ASP.Net application how do you find the name of the logged in person under windows authentication?
What are server side controls?
How to use push notification?
How do you do Client-side validation in .Net?
What is preprocessor in .net and type, where it use?
Is razor a programming language?
What are session objects?
How response object is related to asp's response object?
What are the merits and demerits of viewstate?
How does output caching work in ASP.NET?
What are the main differences between asp and asp.net?
What is the page life cycle in asp.net?
What is a page life cycle?