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 / pooja shukla
D
| Is This Answer Correct ? | 0 Yes | 3 No |
Post New Answer View All Answers
Define a multilingual website?
What is a proxy in web service?
What is the use of HttpHandlers? When to use this?
Can we store object in viewstate?
What are the differences between clr & cts?
Why is global asax is used for?
Can you explain composite pattern?
What does the hotspot class in .net do?
What are the different types of sessions in asp.net?
A Web Service Can Only Be Written In .net. Is it True??
What is simple data binding?
How can you handle exceptions in asp.net?
How will you do windows authentication and what is the namespace? If a user is logged under integrated windows authentication mode, but he is still not able to logon, what might be the possible cause for this? In ASP.Net application how do you find the name of the logged in person under windows authentication?
How can I configure asp.net applications that are running on a remote machine?
How do I publish my asp.net application to my isp's web server?