ASP.NET MVC: get the result of an action as part of another action

In an ASP.NET MVC application, I have an action () page that displays a page (like a wiki page).

Now I have another RenderPdf () action that should collect the HTML () output and use the HTML2PDF component to create a PDF version of this page.

How do I compile the HTML result of one action in another action. Note: not in the view, but in the action code directly.

+5
source share
4 answers

You can use MVC Futures .

, RenderAction(), HTML , ...

0

pdf , javascript Render PDF?

pdf . , / ?

0

:

ASP.NET MVC

, SendEmailK() HTML2PDF PDF.

0

, , , ASP.NET MVC 1.

GetActionOutput . , - AccountController, .

eg. if you want to call the Test Method on the AccountController, the syntax will be ... GetActionOutput ("Account", "Test");

0
source

All Articles