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 do cookies work? Give an example of their abuse.
How do you design a website with multilingual support in ASP.NET ?
How should I destroy my objects in asp.net?
Describe the .net base class library.
How much is the pay-for-use service if I chose not to use microsoft-sponsored advertising?
Can we have 2 web config files?
Fetch one page value to another page without using state-managment ?
Describe a Windows Service and its lifecycle ?
What is the flow of processing of the request? : asp.net mvc
Why session is necessary in web application?
What are the properties of the eventargs argument when capturing keyboard events?
Can you edit data in the Repeater control? Which template must you provide, in order to display data in a Repeater control? How can you provide an alternating color scheme in a Repeater control? What property must you set, and what method must you call in your code, in order to bind the data from some data source to the Repeater control?
How can we identify that the page is post back in asp net?
What is strong-typing versus weak-typing?
What is the difference between CLICK and MOUSE DOWN Event ?