I’m trying to load an image into a WebImageViewer (‘img_login_header_400x150’). The URLPath is valid, and loads fine when pasted into a browser. However the WebImageViewer never displays anything. I inspected the element in the browser and the div looks fine (pasted below). The Image isn’t inside any other control. TIA for pointing out any obvious mistakes on my part. Thanks!
Var f2 As New FolderItem(FilePath + FileName, FolderItem.PathModes.Native)
If f2 <> Nil Then
If f2.Exists Then
img_login_header_400x150.URL = f2.URLPath
img_login_header_400x150.UpdateBrowser()
End If
End If
Thanks @Greg_O , I’m still stuck, maybe you can see my next mistake
Var f2 As New FolderItem(FilePath + FileName, FolderItem.PathModes.Native)
Var WFile As WebFile = WebFile.Open(f2)
If WFile <> Nil Then
img_login_header_400x150.URL = WFile.URL
End If
…and here is the snippet from the page, not displaying the image…
FWIW I’m not married to using WebImageViewer, if there’s a better way to dynamically display web images. This is a crucial part of the solution I’m working one; using branding images based on the nature of the user logging in. Thanks for any/all input on this.