Hi,
Thanks for that.
The issue was to do with the 'rebasing' of images when using Master
pages (Lookup "URL Rebasing In Master Pages" in
http://www.odetocode.com/Articles/419.aspx).
Your article helped alot though in that I used it to just create a
'fully formed' URL. It appears that rebasing only occurs when the URL
passed to a control is 'relative'.
If you're interested, the code I ended up with was
_images.ToList().ForEach(x =>
{
// Need to pass the fully formed URL to prevent
rebasing.
string URL =
Request.Url.AbsoluteUri.Replace(Request.FilePath, "/tempfiles/") +
x.ThumbanailFileName(false);
Image i = new Image() { ImageUrl = URL };
this.ph1.Controls.Add(i);
});
Thanks very much for your help.
Damien