In a View I want download the current view as a pdf-file. How can you give the contents of the view to the controller?
<td><span>
<a href='<%: Url.Action("ListToPdf",
new { AHtmlContents = this.SourceCode.ToString()})%>'
target="_blank">Download list</a>
</span></td>