Solved

ASP.NET Output Caching and Google+1, Twitter Follow, and Facebook Like Buttons

Posted on 2011-09-28
3
287 Views
Last Modified: 2012-05-12
I have a situation where I want to Output cache our entire web page in asp.net, but I do not want to cache twitter/google+1/facebook like buttons.  I looked at the substitution controls but that doesnt look like the right thing to use, I need to exclude a block of html from caching but because I am using master pages, several in fact, partial caching isnt a great solution.
0
Comment
Question by:recruitit
  • 2
3 Comments
 
LVL 16

Expert Comment

by:Easwaran Paramasivam
ID: 36715154
Apply page level caching using @outputcache and in the varybycontrol give the button controls that you like to click. Refer: http://www.codeproject.com/KB/web-cache/OutputCache.aspx

One more option there, implement some user control and dont set the outputcache for your control: Refer: http://aspadvice.com/blogs/joteke/archive/2007/10/31/ASP.NET_3A00_-clear-user-control-output-cache.aspx
0
 
LVL 16

Accepted Solution

by:
Easwaran Paramasivam earned 500 total points
ID: 36715162
0
 

Author Closing Comment

by:recruitit
ID: 36715854
Thanks, using asp:Substitution controls worked, I wasnt using them properly before (Method has to be static).  Using them I can dynamically create html content like the google facebook and twitter buttons on the fly that are not cached.

Thanks!
0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Sometimes in DotNetNuke module development you want to swap controls within the same module definition.  In doing this DNN (somewhat annoyingly) swaps the Skin and Container definitions to the default admin selections.  To get around this you need t…
User art_snob (http://www.experts-exchange.com/M_6114203.html) encountered strange behavior of Android Web browser on his Mobile Web site. It took a while to find the true cause. It happens so, that the Android Web browser (at least up to OS ver. 2.…
This video shows how to use Hyena, from SystemTools Software, to bulk import 100 user accounts from an external text file. View in 1080p for best video quality.
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

839 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question