Monday, March 25, 2019

Insert image to item field in MVC controller

Hi,

I'm going to share my issue experience here..

Issue:

While a time ago, 
i've ended up with one requirement "need to set image to item field in controller"

i searched in google and tried so many methods for this but not working.

After lot of research finally i found the work around.

Solution:
  
   imageField.SetAttribute("Src", imageItem.MediaPath);    

Src - Field name
imageItem.MediaPath - your image item

Thanks :)

No comments:

Post a Comment

Check the users Logged into the sitecore backend

Hi, Today I'm going to discuss about " how to check the concurrent users logged into the sitecore backend ? ". For this ...