您的位置:首页 > 理论基础 > 计算机网络

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

2016-06-23 21:41 537 查看
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("");
}


  
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: