Yes, I tried Readline and got the same result. I'm thinking that somehow a threading solution must be applied.
Main Topics
Browse All TopicsI just asked a similar question about displaying console output to a ASP.NET textbox and that did the trick. However, I am using the following lines:
System.Diagnostics.Process
this.txtStatus.Text = p.StandardOutput.ReadToEnd
This appears to wait until the entire process is done before showing any output. Is there someway to get it to display dynamically, i.e., whenever something is output from the console? This is very urgent, so I appreciate your help!
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
If you have some control over the process you are calling, you can have it flush its output after every line, and Readline should get you the first line at least.
A threading solution doesn't work in the CLASSIC web scenario, but COULD be made to work in an AJAX context, where you serve up the page with an EMPTY textbox to start with, but initiate a request that feeds you text as it is generated.
There is a tutorial at
http://www.w3schools.com/a
and
http://ajaxpatterns.org/Aj
has a variety of examples of using AJAX.
I don't know of any for your SPECIFIC problem, and a lot depends on the nature of the process that is running - if the buffer is never flushed until the process is closed, you might just as well redirect the output into a file and provide a SEPARATE page to allow the user to look the last (or one of a set of) output files later when the process is finished.
This is probably what you need.
http://www.netomatix.com/p
Business Accounts
Answer for Membership
by: jensfiedererPosted on 2007-12-05 at 10:34:14ID: 20413745
Well you ASKED to "ReadToEnd", so it MUST wait until the process is done!
Have you tried Readline instead?
Of course, you won't get it ALL that way.
What results are you trying to achieve?