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.....
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
SenthilkumarPosted Feb 24, 2012, 12:33 AM
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.
Please refer this link for more information.
http://msdn.microsoft.com/en-us/library/h30h475z(v=vs.71).aspx
Satyapriya NayakPosted Feb 22, 2012, 10:18 PM
Please refer the below link
http://www.dotnetfunda.com/articles/article1484-how-to-implement-fragment-caching-in-aspnet-.aspx
Thanks