what is the major use of caching in asp .net [Resolved]

Posted by Karthik2010_Mca under Interview Questions on 2/24/2013 | Points: 10 | Views : 1479 | Status : [Member] | Replies : 2
Hi All,

Please let me know what is the major use of caching in asp .net with example.

Thanks

Karthik


Responses

Posted by: Raj.Trivedi on: 2/24/2013 [Member] [MVP] Starter | Points: 50

Up
0
Down

Resolved
Hello Karthik

Please check the following link this will answer your Query

http://www.codeproject.com/Articles/29899/Exploring-Caching-in-ASP-NET

Regard's
Raj.Trivedi
"Sharing is Caring"
Please mark as answer if your Query is resolved

Karthik2010_Mca, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: Satyapriyanayak on: 2/24/2013 [Member] [MVP] Silver | Points: 25

Up
0
Down
Catching:- It is a performance improvement technique.

1.It handles storage of frequently accessed data in the memory of the system so that user can access data very quickly.
2.It is used to store recently visited webpage.suppose we are surfing the site and watching various pages. At the time we want to go back to the previous page it loads the page from the memory instead of the server.
3.It has a disadvantage too. Supose the website is continuously updated the user is not able to watch the changes.


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;


Please refer the below links

http://www.c-sharpcorner.com/UploadFile/vishnuprasad2005/ImplementingCachinginASP.NET11302005072210AM/
ImplementingCachinginASP.NET.aspx

http://www.codeproject.com/Articles/6158/Caching-in-ASP-NET
http://www.aspnet101.com/2010/07/asp-net-caching-tutorial-part-1/


Thanks

If this post helps you mark it as answer
Thanks

Karthik2010_Mca, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response