How can I pass console output to an ASP.NET page, how does it appear?

I would like to run a console program from an ASP.NET page, pass the output to a label or some other control, and update it dynamically as soon as it happens Console.Writeline.

How to do it?

+3
source share
2 answers

You can write standard output from another program using ProcessStartInfoclass: set RedirectStandardOutputto true, and then read the program output from the property StandardOutput.

The data you read can be used for any purpose.

+2
source

- (WCF XML JSON) , ASP.NET AJAX. , , .

+1

Source: https://habr.com/ru/post/1714073/


All Articles