I want to tie in to MVC to trigger some code to run whenever the View is finished processing but not yet finished sending data to the browser.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I would say Controller.OnResultExecuted, but actually I think at this time data is already written to the output stream. The fact that view directly writes data to output stream may make answer to your question hard to find. The only way I think to avoid this is to write your own ViewResult that will provide intermediate stream to view engine, get all data into there, do your own processing, and then write it to the http output stream.