在MVC里使用 HttpContext.Response输出内容

    public ActionResult About()
        {
            byte[] ss = System.Text.Encoding.UTF8.GetBytes("111122");

            HttpContext.Response.OutputStream.Write(ss, 0, ss.Length);
            HttpContext.Response.ContentType = "text/plain";
            HttpContext.Response.End();
            return Content("");
        }

  

原文地址:https://www.cnblogs.com/sgciviolence/p/5612293.html