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 ViewState?
What is a web pool?
What is state management in .net?
How does u call and execute a sp in .net?
What are the memory-mapped files?
What is the difference between Hash table and Array list?
What is the asp.net control toolkit?
if i want to give an alert message like "try after sometime" to a web page which is being seen by other person.if a web page is not seen by anyone then it should display otherwise it show a display a message stating that other person is viewing so try after some time........how can i implement this.
What parameters can you pass in the url of the api?
How is session id generated?
Why web api is better than wcf?
What is xaml? Are xaml file compiled or built on runtime?
What is OSI layer? Explain different layers.
How to do parallel database export in remote SQL Server in ESSL time track. It is working for local server but not working for remote SQL Server
What are the two Layouts supported by a Web form in ASP.NET?