How To get Image Path From Image Selection Form Control

Adam Jackman-Moore asked on September 17, 2014 05:55

Hi All,

I have a custom table and one of the fields is a Image Selection control. I have selected the image I want to store, however on the front end it shows a Guid and not the path to the image.

How do I use this Guid to load the path to the selected image?

I currently have this. var Logo = reseller.GetValue("StoreLogoImage", "");

Which returns a Guid.

Correct Answer

Jan Hermann answered on September 17, 2014 08:58

Hello,

You can switch the Image selection to Media selection form control which stores the path to an image directly, or you can build the pat from the Image selection form control like this:

"~/getattachment/" + Logo + "/image.aspx"

Best regards,
Jan Hermann

0 votesVote for this answer Unmark Correct answer

   Please, sign in to be able to submit a new answer.