473,473 Members | 1,886 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

FireFox replace \ with %5

1 New Member
Hello, Im using .net c#

I having some problems using firefox to display an image in a server.

Well I'm using an image.imageUrl = "C:\image.jpg" to dipslay the image.

IE works fine, but Firefox, it doesnt, I check the source and replace the \ with the %5, i tried to used anything but it doesnt :(

Any sugestion

Thanks
Nov 20 '06 #1
3 1561
vzdesic
1 New Member
I have the same problem. Did you find the solution in a meantime?
Vedran
Jan 24 '07 #2
enreil
86 New Member
Try image.imageUrl = "file:///C:/image.jpg"

Hello, Im using .net c#

I having some problems using firefox to display an image in a server.

Well I'm using an image.imageUrl = "C:\image.jpg" to dipslay the image.

IE works fine, but Firefox, it doesnt, I check the source and replace the \ with the %5, i tried to used anything but it doesnt :(

Any sugestion

Thanks
Jan 24 '07 #3
enreil
86 New Member
Sorry for the double post - I just thought of something else. The "\" is a special character in C#. Whenever you want to use it as a literal (such as in a file path) you should escape it with another "\". Your path should be "C:\\image.jpg". Alternatively, you can do @"C:\image.jpg". Either will work.

Hello, Im using .net c#

I having some problems using firefox to display an image in a server.

Well I'm using an image.imageUrl = "C:\image.jpg" to dipslay the image.

IE works fine, but Firefox, it doesnt, I check the source and replace the \ with the %5, i tried to used anything but it doesnt :(

Any sugestion

Thanks
Jan 24 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

9
by: Joe | last post by:
I'm trying to create an image preview function so that my users can preview images before they upload them. I've got my example working locally on both Firefox and IE, and from the webserver in IE....
3
by: Tim Mackey | last post by:
hi, i have a javascript function to highlight google search keywords in the page. it works well on IE and mozilla browsers. for the page OnLoad, i call the Highlight() method, and that...
6
by: christian9997 | last post by:
Hi I would be very helpful if someone could help me with this code. It works fine in IE but when I display it in Netscape or Firefox and I move the mouse from one menu to the other the gap...
4
by: petermichaux | last post by:
Hi, I'm hoping for a reason I'm wrong or an alternate solution... I'd like to be able to dynamically include some javascript files. This is like scriptaculous.js library but their solution is...
4
by: Dan Pearce | last post by:
Processing some text from an external text file into a web page. If I use this: <? $s = file_get_contents('text.txt'); $search = array("@\r\n@si"); $replace = array('</br>'); echo...
4
by: evgenyg | last post by:
Hello ! We have the following situation - when Ajax request is sent what's being returned by the server is usually an XML (which is used for DOM updates) but sometimes it's HTML which is a whole...
3
by: Jake G | last post by:
Ok. I have figured out my whole script except how to make it work in FF. It is a script that lets a user know how many characters they have left for a textbox. Here is the code, is anyone savy...
1
by: rjdougan | last post by:
I am not a developer but need some help with scripts for a client. I have a script to handle form validation and one that handle mouseover on menu. The form validation script works fine by it...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
muto222
php
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.