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 are the Custom controls in asp.net?
Why session management is required?
What is the difference between page-level caching and fragment caching?
What are httphandlers and httpmodules and difference between them?
Any one can tell how we store tiff format images in database and retrive from the database(need for tiff format only)
Can we have multiple web config files for an asp.net application?
Fetch one page value to another page without using state-managment ?
What is content place holder?
Is it possible to create web application with both webforms and mvc?
What is _dopostback in asp net?
In ViewState How much lifespan items stored?
What is the difference between file-based dependency and key-based dependency?
Name the tools or API for developing or testing web api?
In how many ways we can retrieve table records count?
Explain about Automatic resource management?