Originally Posted by Imar
Without the ~ your image will always be looked for in the root of the server. With that character, the path will be expanded to the current application which may or may not be the root of the server (it could be an additional application folder such as /myApp).
Why it didn't work is hard to say without seeing the relevant code. Maybe the image you assigned it to was a plain img element and not a server control?
Yes, it was just a plain img. What control should I use instead, just change it to an asp image?
And would it be possible to put this function along with the one that returns yes or no label in a static class in my app_code folder so I can call it on any grid on any page?
Thanks for the quick reply.