Hoppa till huvudinnehållet

How can I display a custom icon image on my DisplayForm at runtime?

Kommentarer

1 kommentar

  • Permanently deleted user
    Hello Sean,

     

    Here is what I did:

     

    imagePath="http://youreocortexserver/Geocortex/Essentials/yourinstance/REST/sites/site/viewers/yourviewer/VirtualDirectory/Resources/Images/Custom/123.png"

     

    imageFormItem1=new ImageFormItem() With {.ArgumentName="image1", .width=30, .height=30, .Source=imagePath}

     

    then add the image item to the form.  It works.  However I have not found a way to get the image path dynamically if images are in Geocortex site folder.  

     

     
    0

Du måste logga in om du vill lämna en kommentar.