ASP.Net Interview Questions and Answers
<< Previous Question Next Question >>
 Question: 2026 Page Views: 

Explain the various types of ASP.Net Caching?



Posted By: Avi Date: 6 November 2009 07:48:31 AM
 Answer:

Basically, ASP.Net Caching is of two types:

1) Output Caching:
The rendered html page is stored into the cache before sending it to the client. Now, if the same page is requested by some other client the already rendered htm page is retrieved from the server memory and sent to the client, which saves the time requires rendering and processing the complete page.

2) Data Caching:
The important pieces of information, that are time consuming and frequently requested, are stored into the cache. For example a data set retrieved from the database. It is very similar to application state but it is more server friendly as the data gets removed once the cache is filled.

There are two more models which are built on the above two types:

Fragment caching:
Instead of caching the complete page, some portion of the rendered html page is cached. E.g.: User Control used into the page is cached and so it doesn’t get loaded every time the page is rendered.

Data Source Caching:
It is caching built into the data source controls (eg. XmlDataSource, sqlDataSource etc). It is very similar to data caching but here the caching is not handled explicitly but the data source control manages it as per the settings made on the data controls.


Posted By: eTechPlanet


Date: 6 November 2009 07:48:31 AM
Post a better Answer if you have
 
(Will show your Gravatar icon)  
  Country flag

Loading
Enter the text as shown in the image IpxS1p
Related Questions
ASP.Net : What is ASP.net?

What is ASP.net?

ASP.net is the advanced version of ASP . It is part of Microsoft's .Net framework.Basically ASP is a....
Category: ASP.Net Date: 10/1/2010 12:02:14 AM
ASP.Net : Name the methods which are there in the Thread class?

Name the methods which are there in the Thread class?

Abort() GetData() GetInformation() Interupt() Join() Resume() SetData() Sleep() Start() Suspend()
Category: ASP.Net Date: 9/30/2010 11:58:14 PM
ASP.Net : How will you reduce the width of the textbox in EditCommandColumn of DataGrid?

How will you reduce the width of the textbox in EditCommandColumn of DataGrid?

This can be done by converting text column into a templete , which then lets you to make the change....
Category: ASP.Net Date: 9/30/2010 11:41:14 PM
ASP.Net : State difference between Page.RegisterClientScriptBlock and Page.RegisterStartupScript?

State difference between Page.RegisterClientScriptBlock and Page.RegisterStartupScript?

Page.RegisterClientScriptBlock:- It is meant for the functions which must be available to the page. ....
Category: ASP.Net Date: 9/30/2010 11:20:13 PM
ASP.Net : Is there any difference between a==b and a.Equals(b)?

Is there any difference between a==b and a.Equals(b)?

Both are used for comparisons but it depends whether they are being compared value based or refrence....
Category: ASP.Net Date: 9/30/2010 10:31:14 PM