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
Explain the use of duration attribute of @outputcache page directive.
Describe the method to create a permanent cookie?
Explain the difference between debug.write and trace.write? When should each be used?
What is meant by web application?
Where is http session stored?
What is Partial PostBack in ASP.NET?
What is Razor View Engine
Explain how do you deploy your asp.net application?
What is http protocol and how it works?
Asp pages that worked pefectly on windows 2000 server and iis 5.0 do not work on windows 2003 server with iis 6.0. Asp.net pages work fine. Why?
How can we secure the data which is send from client side to server? Like the login id and paasword needs to be authenticated on the server but we cannot send it in plain text into the server.One more thing we are not using the SSL here.
Explain the difference between asp and asp.net?
Define satellite assemblies.
what is a .xap file? Explain with an example.
What are server objects?