图像控件未在Mozilla Firefox中显示图像 [英] Image Control Is Not Displaying the Image In Mozilla Firefox

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

问题描述

Image1.ImageUrl ="D:/s1.jpg";
除了firefox以外,它在所有浏览器上都有效
如果我在网站上添加图片,则可以在所有浏览器中使用
Image1.ImageUrl =〜images/s1.jpg";
但是,如果我尝试从某个网站的外部定位来引用,那是行不通的
在Firefox中
伙计们请帮助

Image1.ImageUrl = "D:/s1.jpg";
except firefox it works on all browser
here if i add the image in the website it works in all browser
Image1.ImageUrl = "~images/s1.jpg";
but if i try to refer from outside locatn of a website it doesnt work
in firefox
guys pls help

推荐答案

尝试使用此代码
Image1.ImageUrl = server.mathpath(〜images/s1.jpg");
try use this code
Image1.ImageUrl = server.mathpath("~images/s1.jpg");


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

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