【发布时间】:2017-08-20 06:05:01
【问题描述】:
当我按下下载并调用这个动作时,我得到了结果
您要查找的资源已被删除,有它的名字 已更改,或暂时不可用。
并定向到
http://integratedproject20170322032906.azurewebsites.net/MyDocumentUps/Download/2020Resume.pdf
为什么它链接到上面而不是链接到
https://filestorageideagen.blob.core.windows.net/documentuploader/2020Resume.pdf
如控制器所示?
这是我在视图中的操作链接
@Html.ActionLink("Download", "Download", "MyDocumentUps", new { id = item.DocumentId.ToString() + item.RevisionId.ToString() + item.Attachment },新的 { target="_blank"}) |
public ActionResult Download(string id)
{
string path = @"https://filestorageideagen.blob.core.windows.net/documentuploader/";
return View(path + id);
}
【问题讨论】:
标签: c# asp.net azure model-view-controller azure-storage