Php 图像显示错误
我想通过提供指向图像Php 图像显示错误,php,asp.net,image,visual-studio-2012,razor,Php,Asp.net,Image,Visual Studio 2012,Razor,我想通过提供指向图像@imagePath的链接来添加图像。它提供路径images\IMG\u 20150507\u 153730.JPG 在显示图像标签上,我总是得到带有文本图像的图像缩略图。因为alt=“image 包含图像的文件夹位于父文件夹中。图像文件夹包含显示在代码文件所在目录中的图像 文件夹的层次结构 项目位置-C:\Users\ahsan\Documents\Visual Studio 2015\WebSites\taskCOMSATS 代码文件位置-C:\Users\ahsan\D
@imagePath
的链接来添加图像。它提供路径images\IMG\u 20150507\u 153730.JPG
在显示图像标签上,我总是得到带有文本图像的图像缩略图。因为alt=“image
包含图像的文件夹位于父文件夹中。图像文件夹包含显示在代码文件所在目录中的图像
文件夹的层次结构
项目位置-C:\Users\ahsan\Documents\Visual Studio 2015\WebSites\taskCOMSATS
代码文件位置-C:\Users\ahsan\Documents\Visual Studio 2015\WebSites\taskCOMSATS\upload\u image
图像文件夹位置-
C:\Users\ahsan\Documents\visualstudio 2015\WebSites\taskCOMSATS\Images\IMG_2015050507_153730.JPG
如何在Src?Src=“..\Images\IMG_2015050507_153730.JPG”或Src=“taskCOMSATS\Images\IMG_201505007_153730.JPG”中提供“php
,asp.net
和使用VS-2012
是否确定标记?如何将值分配给@imagePath
?是的,确定..嗯..因为您的代码看起来像php,并且您正在使用visual studio。。hahaha@Div你想要什么
<div class="result">
<img src="@imagePath" alt="image" />
</div>
..\images\IMG_20150507_153730.JPG