// --------------------------------------------------------------------------- public void Write(Stream stream) { ShowData x = new ShowData(); x.WebContext = HttpContext.Current; if (x.WebContext != null) { x.WebContext.Response.ContentType = "text/plain"; x.WebContext.Response.Write( Utility.IsHttpPost() ? x.DoPost() : x.DoGet() ); } else { x.SendCommandLine(stream); } }