图片未显示在网站上 [英] images not displaying on website

查看:96
本文介绍了图片未显示在网站上的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

希望有人能帮助我.我使用Visual Studio 2008和mysql作为mydatabase技术创建了一个webapp.当我在本地运行代码时,我的图像会正确上传并显示在我将asp图像控件放置到的任何位置.我将我的webapp上传到了要托管该webapp的服务器上,图片已正确上传,但它们根本不显示.可能是什么问题呢?我检查了数据库,那里的一切都很酷,我检查了图像的文件路径,这就是正确的.请帮忙!谢谢您.

Hi, hopefully someone can help me. I have created a webapp using visual studio 2008 and mysql as mydatabase technology. When i run my code locally, my images get uploaded properly and display wherever i have placed the asp image control. I uploaded my webapp to the server thats going to host the webapp, the pics upload properly but they don''t display at all. What could be the problem? I checked my database and everything is cool there, i check my filepath for the images and thats correct. Please help! Thank you

推荐答案

请在源页面中进行操作.复制出文件路径.在网址中,删除页面引用并粘贴到图像路径中.图像显示吗?如果不是,则路径不正确.
OPen the page in source. Copy out the file path. In the url, delete page reference and paste in the image path. Does the image display? If not then the path is incorrect.


您的路径错误,或者图像文件不存在.确保您正在使用相对路径.
Either your path is wrong, or the image file doesn''t exist where you said it does. Make sure you''re using relative paths.


这篇关于图片未显示在网站上的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆