Opps..sorry, should have read your email more closely
From the MSDN Process documentation:
http://msdn.microsoft.com/library/d...iagnosticsprocessclassstandardoutputtopic.asp
Process p = new Process();
p.StartInfo.UseShellExecute = false;
p.StartInfo.RedirectStandardOutput = true;
p.StartInfo.FileName = "test.exe";
p.Start();
p.WaitForExit();
string output = p.StandardOutput.ReadToEnd();
Is that more what you are looking for?
Karl
--
MY ASP.Net tutorials
http://www.openmymind.net/ - New and Improved (yes, the popup is
annoying)
http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to
come!)
Thanks, but there is no file to read from. The Perl script should be
executed, and then the outputting html should be rendered into the
asp.net
webform.
I am basically looking for something like lwp in Perl
http://lwp.linpro.no/lwp/
to get the html and then some method to dynamically render it
Thanks
"Karl Seguin" <karl REMOVE @ REMOVE openmymind REMOVEMETOO . ANDME
net>
wrote in message Read the file into a string and set the Text property of a literal
to
the
value:
StreamReader sr = null;
string content = "";
try
{
sr = new StreamReader("c:\\someFile.html");
content = sr.ReadToEnd();
}finally
{
if (sr != null)
{
sr.Close();
}
}
SomeLiteral.Text = content;
Karl
--
MY ASP.Net tutorials
http://www.openmymind.net/ - New and Improved (yes, the popup is
annoying)
http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to
come!)
Hello,
I am trying to embed html output into my webform but could not figure
out
how to so far.
The form will execute a Perl script with some parameters, and
script
will
output some html code. I need to capture and render this html into my
webform.
Any ideas?
Thanks