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 |
which scripting is used browser by server when we use validation controls. 1.javascript 2.vbscript 3.jscript 4.perl
Explain the role of global.asax?
what is Master pages in asp.net? what is the advantages and disadvantages?
Tell me the code snippet to show how we can return 404 errors from HttpError?
How can we make sure that Web API returns JSON data only?
Explain diff. Between friend and protected friend?
Briefly describe different techniques for ASP.NET State Management?
6 Answers Deloitte, Syntax Softtech,
How would you get asp.net running in apache web servers?
what is service contract,operation contract?
How do u declare static variable and how it is declared and what is its lifetime?
What are user controls?
Explain server-side scripting?
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)