R
rockdale
I believe this must be a very sample question.
I have a image dir under myWebsite (myWebSite is the root dir of my web
appl)
I have an ascx file under myWebsite/userControls
in the c# of ascx file, I load a image file using MapPath.
imgSort.ImageUrl = Server.MapPath("Images/sort_asc.gif");
If I check the source from IE
I found that the imgSort's image is c:\myWebsite\sort_asc.gif
It points to my client local c driver and the img does not show up.
Of course if I access myWebsite from server, I got the correct image,
'cause that is the C driver on server.
I tried to use relative path, but got no luck.
How should I point to the image url?
Thanks a lot
-Rockdale
I have a image dir under myWebsite (myWebSite is the root dir of my web
appl)
I have an ascx file under myWebsite/userControls
in the c# of ascx file, I load a image file using MapPath.
imgSort.ImageUrl = Server.MapPath("Images/sort_asc.gif");
If I check the source from IE
I found that the imgSort's image is c:\myWebsite\sort_asc.gif
It points to my client local c driver and the img does not show up.
Of course if I access myWebsite from server, I got the correct image,
'cause that is the C driver on server.
I tried to use relative path, but got no luck.
How should I point to the image url?
Thanks a lot
-Rockdale