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
Define globalization and localization.
Define viewstate in .net?
Give an example of what might be best suited to place in the application_start and session_start subroutines?
Explain difference betn dataset and recordset?
How can I create master page in asp net?
Define web.config in .net?
Mention few asp.net validators.
What are the differences between application object and session object?
What is asp.net globalization?
How many web.config files can I have in an application?
What are the advantages of asp.net mvc framework? : asp.net mvc
If you are using components in your application, how can you handle exceptions raised in a component?
What is the flow of processing of the request? : asp.net mvc
Can I have a unique key as foreign key?
How do u declare static variable and how it is declared and what is its lifetime?