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 / sadanandam
c
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
What is session start?
Explain the difference between panel and groupbox classes using .net?
How to implement form based authentication in asp.net application?
Who can consume WebAPI?
Can we use MSSql as backend in asp.net...if yes then How.?
In which event of the page life cycle, is the viewstate available?
What is application Object?
Explain the flow of processing of the request? : asp.net mvc
Why session is used in asp.net?
What is the difference between Session and response.Redirect?
What are type/key pairs in client script registration? Can there be 2 scripts with the same type/key pair name?
How to send a DataReader as a parameter to a remote client ?
What is an il?
What is server redirect?
When maintaining session through sql server, what is the impact of read and write operation on session objects?