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
How do I force the dispose method to be called automatically, as clients can forget to call dispose method?
What is the difference between debug and release?
Difference between application events and session events
What is route in web api?
Define web.config in .net?
What is an assembly? Explain its parts.
What is difference between Lambda Expression and LINQ in ASP.NET?
What is Web API Routing?
Why is the standalone environment only useful during the development process?
To load your generated dataset with data which method do you invoke?
Do you know about caching with the datasource controls?
What is directive in asp net?
What is difference between web config and global asax?
What is a server cookie?
What do you mean by serialize?