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

The forums are in read-only mode. In case that you want to directly contact the Progress Sitefinity team use the support center. In our Google Plus group you can find more than one thousand Sitefinity developers discussing different topics. For the Stack Overflow threads don’t forget to use the “Sitefinity” tag.
1 posts, 0 answered
  1. Ryan
    Ryan avatar
    0 posts
    06 Oct 2016
    13 Oct 2016
    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?



1 posts, 0 answered