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.
Answers were Sorted based on User's Feedback
Answer / siva
C Because entire page is stored in output cache. If u stored
in session not only maintain this page, but also sotred all
values in session.
| Is This Answer Correct ? | 2 Yes | 0 No |
How can I configure asp.net applications that are running on a remote machine?
Can you use Web API with ASP.NET Web Form?
State differences between MVC and WebAPI
State management in asp.net ?
What is runtime host ?
Name two properties common in every validation control?
What does the .webpart file do?
Can a master page have more than one contentplaceholder?
Explain the difference between singleton and single call?
What does setting a control's EnableViewState property to false accomplish?
What is the base class from which web forms are inherited?
How do I debug an asp.net application that was not written with visual studio.net and that does not use code-behind?
Visual Basic (800)
C Sharp (3816)
ASP.NET (3180)
VB.NET (461)
COM+ (79)
ADO.NET (717)
IIS (369)
MTS (11)
Crystal Reports (81)
BizTalk (89)
Dot Net (2435)
Exchange Server (362)
SharePoint (720)
WCF (340)
MS Office Microsoft (6963)
LINQ Language-Integrated Query (317)
WPF (371)
TypeScript (144)
Microsoft Related AllOther (311)