Solved

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

Posted on 2011-09-28
3
295 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

SharePoint Admin?

Enable Your Employees To Focus On The Core With Intuitive Onscreen Guidance That is With You At The Moment of Need.

Question has a verified solution.

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

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
In .NET 2.0, Microsoft introduced the Web Site.  This was the default way to create a web Project in Visual Studio 2005.  In Visual Studio 2008, the Web Application has been restored as the default web Project in Visual Studio/.NET 3.x The Web Si…
This video Micro Tutorial shows how to password-protect PDF files with free software. Many software products can do this, such as Adobe Acrobat (but not Adobe Reader), Nuance PaperPort, and Nuance Power PDF, but they are not free products. This vide…
There's a multitude of different network monitoring solutions out there, and you're probably wondering what makes NetCrunch so special. It's completely agentless, but does let you create an agent, if you desire. It offers powerful scalability …

726 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