Click here to Skip to main content
15,921,452 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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
Posted
Updated 16-Jul-11 19:30pm
v2

1 solution

try use this code
Image1.ImageUrl = server.mathpath("~images/s1.jpg");
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900