Answer Posted / bhim bharti
Caching is a technique widely used in computing to increase performance by keeping frequently accessed or expensive data in memory. In context of web application, caching is used to retain the pages or data across HTTP requests and reuse them without the expense of recreating them.ASP.NET has 3 kinds of caching strategiesOutput CachingFragment CachingData
CachingOutput Caching: Caches the dynamic output generated by a request. Some times it is useful to cache the output of a website even for a minute, which will result in a better performance. For caching the whole page the page should have OutputCache directive.<%@ OutputCache Duration="60" VaryByParam="state" %>
Fragment Caching: Caches the portion of the page generated by the request. Some times it is not practical to cache the entire page, in such cases we can cache a portion of page<%@ OutputCache Duration="120" VaryByParam="CategoryID;SelectedID"%>
Data Caching: Caches the objects programmatically. For data caching asp.net provides a cache object for eg: cache["States"] = dsStates;
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What New Features comes with ASP.NET Web API 2.0?
What is preprocessor in .net? Where it use?
List some of the important session state modes of asp.net.
COM+ Used ________________ Isolation Level
How ASP and ASP.NET page works? Explain about asp.net page life cycle?
What is the advantage of using Windows authentication in a Web application?
9. Why should we hire you over the others waiting to be interviewed?
Explain the benefits of viewstate?
Explain exception filters?
How you can manage the state of application at the server side in ASP.NET?
What is cookies cache and session?
Explain serialization and deserialization?
What is syntax code to send email from an asp.net application?
Explain the path instructions in xaml?
What are the Types of state management techniques