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.
Console.Writeline
How to do it?
You can write standard output from another program using ProcessStartInfoclass: set RedirectStandardOutputto true, and then read the program output from the property StandardOutput.
ProcessStartInfo
RedirectStandardOutput
StandardOutput
The data you read can be used for any purpose.
- (WCF XML JSON) , ASP.NET AJAX. , , .
ASP.NET AJAX
Source: https://habr.com/ru/post/1714073/More articles:Есть ли лучший способ написать этот SQL-запрос? - sql-serverasp.net mvc: пользовательское сообщение формы ViewModel - jqueryJNA - Нарушение доступа, JVM-терминалы - javapygtk: Draw lines on gtk.gdk.Pixbuf - pythonGetting an array of an object from a web form using a Spring structure - javaCreating XML from joining multiple tables in SQL Server - joinScala listing and reflection - reflectionIs it possible to use a python module that is not installed in python directories on Linux? - pythonHow was car physics implemented in carmageddon 2? - physicsPHP pfsockopen in session - phpAll Articles