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 / dilip kumar
d
| Is This Answer Correct ? | 0 Yes | 4 No |
Post New Answer View All Answers
What is application variable?
What are client activated objects?
Explain the advantages of passport authentication.
Is oauth for authentication or authorization?
What methods are fired during the page load? Init()
What is a postback ispostback and autopostback in asp net?
Can we have multiple worker process in an ASP.NET application? If so then how it has been handled by application? And who handles it?
What is considered a service provider?
Explain the role of global.asax?
Define web.config in .net?
What are the steps involved to fill a dataset?
How can you implement encapsulation in asp.net?
Write a code for passing ArrayList in Web API?
How to bind all the binding controls in a page at once in ASP.NET?
What is a multilingual website?