我有一种使用Server.MapPath和HttpPostedFileBase将图像上传到服务器的方法,这项工作很好,图像已上传,但是当我尝试使用标记时
<div class="row">
@foreach (var item in Model)
{
<div class="col-md-4 col-sm-6 portfolio-item">
<a class="portfolio-link" data-toggle="modal" href="#portfolioModal1">
<div class="portfolio-hover">
<div class="portfolio-hover-content">
<i class="fa fa-search-plus fa-3x"></i>
</div>
</div>
<img class="img-fluid rounded" src="@Url.Content(item.ImagenPortada)" alt="Image" />
@*<img class="img-fluid rounded" src="@item.ImagenPortada" alt="...">*@
</a>
<div class="portfolio-caption">
<h4>@item.Titulo</h4>
<p class="text-muted">@item.Descripcion</p>
</div>
</div>
}
</div>
有什么建议吗?泰!