我尝试显示生成的图像,如下所示:
Response.Write("<img src='" & filepather & "'/>")其中filepather被定义为图像的字符串。它是正确的文件路径,并且我没有得到“断开的图像链接”图标。此代码位于aspx页面内的vb脚本中。
我是不是忘了什么?如果我这样做了
response.write("hello"),它工作得很好。
发布于 2013-06-11 05:44:02
确保filepather字符串包含映像的虚拟地址,而不是物理地址。
就像我已经测试过了,并且运行良好。
Dim filePath As String = "http://localhost:2025/Styles/Images/logo.png"
Response.Write("<img src='" & filePath & "'/>")https://stackoverflow.com/questions/17033290
复制相似问题