I'm creating a datagrid which may have an image. The image SRCs are constructed in SQL and passed to the calling class, and can be one of several images. These will not ever change, nor be removed, and no others will be added.
Here's my dilema...
We are now using DotNetNuke 3.1, which has URL rewriting and this kind of interferes with the image path because the path is relative to the current page on the client.
In DotNetNuke a user may navigate to page http://sitename/datagrid/tabid/100/Default.aspx
where the actual path is at http://sitename
//baseDir is variable for root path
return baseDir + '/images/image.jpg';
I tried this on my own, but was not having any luck. Would anybody know how to do this?
I want to have the SRC of the object to call on its location from a variable or a function.