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


Please Help Members By Posting Answers For Below Questions

What is meant by asp.net?

549


What is an asp.net validator? And, mention its types.

598


When you are running a component within ASP.NET, what process is it running within on Windows XP? Windows 2000? Windows 2003?

607


How you will manage the state of ASP.NET controls?

581


What is Web API Routing?

613






Who creates jsessionid?

581


What is manifest in .net framework?

551


What kind of programming language is ASP.NET?

623


How do u optimize a query in asp.net?

578


What is the life cycle of web page?

535


What is OSI layer? Explain different layers.

617


What is the file through which you can customize your asp.net application?

560


Where can I get information on cookies in asp.net?

575


Can we make activex dll also ti execute in some process as that of client ? How can we do?

4258


What is redirectpermanent in asp.net?

625