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 / js_m
C
| Is This Answer Correct ? | 4 Yes | 0 No |
Post New Answer View All Answers
What are HTTP handlers in ASP.NET?
How does session work in asp net?
How to bind all the binding controls in a page at once in ASP.NET?
When cookie will expire?
What are web beacons used for?
What does the hotspot class in .net do?
If we remove web.config or machine.config from the application then, is this application will works?
From which base class all web forms are inherited?
explain code with multi inhertance
What is odata in web api?
What is the appSettings Section in the web.config file?
In order to bind the data from a data source to the Repeater control what property is set and what method must you call in your code,?
What are assemblies and namespaces and explain the difference between them ?
Define common type system?
What is true about application service provider?