Hi....
I know caching concept in .NET but I want to know about data fragment caching in .NET? Please explain with an example anyone ?
Thanks.....
Data fragment caching in .NET
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.


Satyapriya NayakRank #47 · 31.5K reputationPosted Feb 22, 2012, 5:18 PM EST
Please refer the below link
http://www.dotnetfunda.com/articles/article1484-how-to-implement-fragment-caching-in-aspnet-.aspx
Thanks
SenthilkumarRank #387 · 6.5K reputationPosted Feb 23, 2012, 7:33 PM EST
The same method will be used to do output caching and fragment caching. But the place where we need to do will be changed.
When you have the static page, if you want to increase the page performance then we have to use the output cache to the static pages. Then it will be cached based on the location we have given and it renders quickly.
But the same time, you may not want to cache the entire page and want to cache the portion in the web page then fragment comes into the picture.
Consider in a web page, you have dynamic content. But the some of the portions like Left menu, header menu, footer menu will be static. Then you have to create the web controls to these portions and assign the output cache to the web user controls.
http://msdn.microsoft.com/en-us/library/h30h475z(v=vs.71).aspx