I have a GridView with three Button columns that are set up with images. When I select my path for the image, using the GUI tool that VS provides, the resulting path is something like ~/Images/myicon.png
and the image displays fine (sometimes) in the VS Design mode. But the images do not display on the running version of the website (using Firefox) because the image locations resolve to ../Images/myicon.png
. I can manually change it to Images/myicon.png
and it works fine on the website but then not in VS.
How do I get them to behave the same way? These file paths are driving me nuts!