Esempio n. 1
0
// ---------------------------------------------------------------------------
    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);
      }
    }
Esempio n. 2
0
// ---------------------------------------------------------------------------
        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);
            }
        }