+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Binding To An Image Field In The ASCX File

Binding To An Image Field In The ASCX File

1 posts, 0 answered
  1. Ryan
    Ryan avatar
    0 posts
    Registered:
    06 Oct 2016
    13 Oct
    Link to this post

    Hello, in my module I have a picture field called EmployeePicture.

    I created a custom widget that I'm trying to bind to that model with , I'm doing something like this:

    <img src="<%# DataBinder.Eval(Container.DataItem, "EmployeePicture") %>" />

    That however doesn't return back the URL of the picture.  How would I do something like this?

    Thanks.

     

1 posts, 0 answered