下载


public ActionResult xiazai()
{
var path = Server.MapPath("~/shangchuan/屏幕截图(1).png");
FileStream fa = new FileStream(path,FileMode.Open);
return File(fa, "image/gif", "a.jpg");
}
*****************
<a href="xiazai">下载</a>

原文地址:https://www.cnblogs.com/gaoyuhui/p/10957308.html