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 / 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 |
Post New Answer View All Answers
How ASP and ASP.NET page works? Explain about asp.net page life cycle?
What is the page life cycle in asp.net?
What is session and application variable in asp net?
What r the asp.net list controls and difference between them?
Whats the difference between registerclientscriptblock, registerclientscriptinclude and registerclientscriptresource?
Explain repository pattern in asp.net mvc? : asp.net mvc
How will you do Redo and Undo in a TextControl?
How is application management and maintenance improved in asp.net 2.0?
Which ASP.NET configuration options are supported in the ASP.NET implementation on the shared web hosting platform?
How many types of controls are there in asp.net?
What is ispostback property?
What is difference between rest and soap?
Explain how can you debug your .net application?
What is a session in asp.net?
How to do parallel database export in remote SQL Server in ESSL time track. It is working for local server but not working for remote SQL Server