2013-02-25 64 views
-1

我只是使用簡單的代碼來加載圖像在asp.net圖像控制,它在IE中工作正常,但Firefox不顯示圖像。這行代碼是:Firefox:圖像不加載aspx代碼

string path = "F:\\Image\\"; 
    string img = "header-firefox.PNG"; 
    Image1.ImageUrl = path + img; 

和錯誤是:

地址不被瞭解

Firefox不知道如何打開此地址,因爲協議(F)ISN與任何程序無關。

偶文件:/// F:/Image/header-firefox.PNG路徑在代碼中甚至不起作用。

+0

當firefox嘗試下載圖像時,你有沒有看過firebug的調用? – 2013-02-25 09:34:36

+0

它可能被拒絕訪問 – Dreamwalker 2013-02-25 09:34:51

+0

重複的問題http://stackoverflow.com/questions/192080/firefox-links-to-local-or-network-pages-do-not-work – Dreamwalker 2013-02-25 09:36:06

回答

0

你的意思是你在HTML中看到的路徑?我知道反斜槓在C#中逃脫了,但是肯定在HTML中,路徑應該是"\\192.172.60.05\Users\4133.Png"

您是否嘗試直接在Firefox瀏覽\ 192.172.60.05 \ Users \ 4133.Png?

+0

不,它不是HTML查看路徑 – Sam 2013-02-25 09:43:34

+0

我希望現在它更清楚... .. – Sam 2013-02-25 17:13:33