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 |
What is cached data phone?
Explain transparent caching with aop?
How much is the pay-for-use service if I chose not to use microsoft-sponsored advertising?
Can you change a master page dynamically at runtime? How?
Explain authorization levels in .net ?
Which tab of the web site administration tool do you use to manage application setting ,debug and tracing?
What are the steps to follow to host a web application on a web server?
What is marshalling ? Is it a part of asp.net ?
What are the best practices to follow to secure connection strings in an ASP.NET web application?
How do you insert multiple rows from a grid view to database table under a single transaction?
What language is asp.net written in?
how to create textboxes dynamically and insert textbox text into sql database
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)