title: How to display C program errors in asp.net web page using c#
body: <p>I am creating online compilers application. I have successfully created with C#.net and VB.net. But when I am trying with C and C++ I don't know how to display the errors in asp.net webpage. </p>
  
  <p>The following only displays the error but not the location of the error in the code</p>
  
  <pre><code>Process proc = new Process();
  proc.StartInfo.FileName = Session[batchPath].ToString();
  proc.StartInfo.RedirectStandardError = true;
  proc.StartInfo.RedirectStandardOutput = true;
  proc.StartInfo.UseShellExecute = false;
  proc.Start();
  </code></pre>
  
  <p>Is it right or I should do any modification? Thanks in advance.</p>