Types of caching. How to implement caching?

Answer Posted / chandra

ASP.NET Caching Features
ASP.NET Web Applications


------------------------------------------------------------
--------------------

When clients access an ASP.NET page, there are basically
two ways to provide them with the information they need:

the ASP.NET page can either obtain information from server
resources, such as from data that has been persisted to a
database, or
the ASP.NET page can obtain information from within the
application.
Retrieving information from a resource outside the
application will require more processing steps, and will
therefore require more time and resources on the server
than if the information can be obtained from within the
application space.

If the information that will be sent to the browser has
already been prepared by a previous request, the
application will be able to retrieve that information
faster if it has been stored in memory, somewhere along the
request/response stream.

Known as caching, this technique can be used to temporarily
store page output or application data either on the client
or on the server, which can then be re-used to satisfy
subsequent requests and thus avoid the overhead of re-
creating the same information.

Caching is particularly suitable when you expect to return
the same information in the same format for many different
requests.

ASP.NET provides the following types of caching that can be
used to build highly responsive Web applications:

Output caching, which caches the dynamic response generated
by a request.
Fragment caching, which caches portions of a response
generated by a request.
Data caching, which allows developers to programmatically
retain arbitrary data across requests.

Is This Answer Correct ?    5 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is comparevalidator?

519


What is the use of web.config file?

526


explain code with datachaching with example

1694


What happens if an ASP.NET server control with event-handling routines is missing from its definition?

595


What is an axd file?

584






Explain cashing in asp.net.

518


In order to get assembly info which namespace we should import?

516


We Only Know The Total Number Of Feet In The Farmyard. Write A Program that will compute the total number of rabbits and chickens in the farmyard. Assume number of feet in the farmyard are 40. how many rabbits and chickens are?

424


What are httphandlers and httpmodules and difference between them?

514


If there are multiple update panels on the page say upd1 and upd2. There is a button placed in upd1. How can you stop upd2 to update when button placed in upd1 is clicked?

563


What language is asp.net written in?

520


What is the use of global.asax file?

536


How can we Validate a Controls in ASP.NET page using JavaScript?

622


What are the features of asp.net mvc?

521


What is the difference between ldap and active directory?

511