我可以这样在索引文件中查看图像:
@*@Html.DisplayFor(modelItem => item.ImagePath)*@//Instead of this, I use the line below
<img src="~/Images/@item.ImagePath" height=100 width=200>
但是在详细信息文件中我有这个:
@Html.DisplayFor(model => model.ImagePath)
我如何可以查看详细信息文件中的图像时,有一个模型不是项目?我做了几次尝试,但都失败了。谢谢。
本文收集自互联网,转载请注明来源。
如有侵权,请联系[email protected] 删除。
我来说两句