Tell me more ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I'm trying to execute a code even before returning the cached result.

I tried the following in the base controller

protected override void Initialize(RequestContext requestContext)

and

protected override IAsyncResult BeginExecute(RequestContext requestContext, AsyncCallback callback, object state)

What I need is, I need to get control before returning the output cache

Please help... Its very urgent

share|improve this question
Where is the cache stored? On the client or on the server? If it is on the client you can totally forget about running any code on the server simply because your server is never reached. The client browser will simply render the cached page. – Darin Dimitrov Jul 15 at 14:33
I believe the default cache location is set to Any. If i change it to server, can I achieve my task? – Moncy K Jul 15 at 15:25

Know someone who can answer? Share a link to this question via email, Google+, Twitter, or Facebook.

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.