I assume by caching you mean output caching (caching just the output html returned after processing the view result of controller). What you are looking for is called cache substitution or "donut caching". As far as I know it is not supported in ASP.
NET MVC 1 & 2. In the rc of MVC 3 it is supported as you can read here - weblogs.asp.net/scottgu/archive/2010/11/... .
Up vote 3 down vote favorite 1 share g+ share fb share tw.
I add cache to my application, I have a page which contains several User Control, my problem is I just want to cache the data returned from Controller, but not want to cache all the page content. Since one of my user control is login control, if I cache all the result, then it will behave incorrectly. My problem is : 1.
Is it possible to just cache the data returned from controller? 2. If a page is cached, can I force a control in the page to be uncached?
Asp.net asp. Net-mvc caching link|improve this question asked Nov 12 '10 at 6:00MemoryLeak1,68011844 91% accept rate.
I assume by caching you mean output caching (caching just the output html returned after processing the view result of controller). What you are looking for is called cache substitution or "donut caching". As far as I know it is not supported in ASP.
NET MVC 1 & 2. In the rc of MVC 3 it is supported as you can read here - weblogs.asp.net/scottgu/archive/2010/11/....
If you want to cache the data you could have the controller stuff it in session and issue it to the view from session when it needs to or get it fresh (and stuff it in session) when it needs to refresh the data.
I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.