Get the result HTML from ViewResult

7.5k Views Asked by At

Possible Duplicates:
Send asp.net mvc action result inside email
Render a view as a string

I would like to obtain the result HTML from one of my controller actions, and simply send the result as a HTML format email. However, I am having difficulties trying to figure out how to obtain that HTML from ViewResult.

One approach I have tried is to implement HtmlEmailActionFilter that inherits from ActionFilterAttribute. But I still don't know how to get the HTML from ResultExecutedContext.

Am I on the right track? If not, what would be a better way to perform what I would like to accomplish?

Thanks.

0

There are 0 best solutions below