在asp.net中,运行时未显示图像 [英] Image not displaying during runtime in asp.net
本文介绍了在asp.net中,运行时未显示图像的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
您好,先生,我面临的问题是图像在设计页面中可见,而在运行时不可见.我尝试了各种方法,例如更改浏览器和修改Web配置.所以请帮我解决这个问题.
Hi sir,i am facing the problem that image is visible during the design page but not visible during runtime.. I tried different ways like changing the browsers and modifying the web configure. So plz help me for this problem.
推荐答案
在代码中使用它时,您应该指向一个相对的图像路径. 这样,当图像存储在服务器上时,就可以找到它.
You should point to a relative image path when using it in the code.
This way, when the image is stored on the server, it can be located.
这篇关于在asp.net中,运行时未显示图像的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文