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 |
Suppose you want an asp.net function (client side) executed on the mouseover event of a button. Where do you add an event handler?
How Web Services help Us? What r the difference between Remoting and webservices
5 Answers Protech, TCS, Tech Mahindra,
What is the procedure to handle the process request using mhpm events fired? : asp.net mvc
Types of configuration files and their differences ?
Difference b/w casting and boxing?
Where is session cookies stored?
What are session objects?
How can you use a custom controls in ASP.NET application?
0 Answers Sans Pareil IT Services,
Explain global assembly cache.
what is meant by sitemapnode ?
How to implement role based security in asp.net mvc? : Asp.Net MVC
How can we prepairing Interview
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)