I am trying to get [CompressFilter] working with donut caching and running into issues.
What happens is that the whole page gets cached and not just the donut. The source for the CompressFilter I am using is below. I changed this from the original source to use OnResultExecuted instead of OnActionExecuting() because I needed access to t...
All the examples for donut caching I've seen are just like this :
<%= Html.Substitute( c => DateTime.Now.ToString() )%>
Thats fine if I just want the date, but what other options are there?
I know there is a delegate 'MvcSubstitutionCallback' which has the following signature :
public delegate string MvcSubstitutionCallback(HttpCo...
Can someone point out a couple of good quality tutorials/pages for donut caching? Like everything else on the web, you can google a million things, but several of the articles I've found are a bit confusing.
I'm looking for
What is donut caching
When should you use it
How do you implement in ASP.net
...
Looks like context parameter of asp:net substitution control method is missing the current session once the page is output cached.
Aside from getting the substitution control's content thru ajax or using some other method to store data that would otherwise be in session (like database) is there anything else I can do?
Is there a workar...
I would like to use substitution feature of donut caching.
public static string GetTime(HttpContext context)
{
return DateTime.Now.ToString("T");
}
...
The cached time is: <%= DateTime.Now.ToString("T") %>
<hr />
The substitution time is:
<% Response.WriteSubstitution(GetTime); %>
...But I would like to pass additional paramet...
I have an ASP.NET page where i am trying to do some output caching.But ran into a problem.
My ASPX page has
<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Default.aspx.cs" Inherits="MYProject._Default" %>
<%@ OutputCache Duration="600" VaryByParam="None" %>
<%@ Register TagPrefix="MYProjectUC" TagName="PageHeader" Src="~/...
I am using Html.RenderAction<CartController>(c => c.Show()); on my master Page to display the cart for all pages. The problem is when I add an item to the cart and then hit the browser back button. It shows the old cart (from Cache) until I hit the refresh button or navigate to another page.
I've tried this and it works perfectly but it...
while the method we use in Substitution control should return strings, so how is it possible to use a donut caching in web forms on a server control which should be rendered server side?
for example Loginview control?
...
I have a page with the following caching defined:
<%@ OutputCache Duration="60" VaryByParam="None" %>
I have a user control inside that page that i don't want cached. How can I turn it off just for that control?
...
There's probably plenty of good reasons why you can't do this, but as work around for a donut caching issue I'm trying to figure out if there's a way i can manually instantiate the HttpSessionState object. Any ideas?
...
I have a profile image upload page, where users can overwrite their previous profile picture.
But when I return the users to their profile page the browser has cached their previous image and only an F5 refresh returns the new image.
Is it possible to prevent the browser from caching the image, as some users might think their new uploa...
I'm building a custom page caching utility that uses a syntax like {Substitution:GetNonCachedData} to get data that's not supposed to be cached. The solution is very similar to the built-in <@ OutputCache %> stuff but not as flexible (I don't need it to be) and, most importantly, allows the session state to be available when retrieving n...
My website pages are composed of two kinds of content. The first is variable between users but constant for all pages. The second is constant across users, but variable between pages. This is a common layout. What is the best way to apply output caching to content like this?
As I understand it, the Html.Substitute helper is incompatible...