I need to save a page from url - This page is in my own application - in html format. This html will then be send by email to a user. Any anyone knows how?
+6
A:
Well, you'll have to do it at the server to be able to e-mail - so at worst, simply:
using(WebClient client = new WebClient()) {
string html = client.DownloadString(address);
}
It might also be possible to do it directly within MVC - perhaps RenderPartial
?
Marc Gravell
2009-02-08 13:53:23
A:
You could create a Result Filter or override the OnResultExecuted method of the controller to get access to the rendered page.
Matthew
2009-02-08 15:40:00