More in this section

Forums / Developing with Sitefinity / Attatch Select Image Box To User Control Property

Attatch Select Image Box To User Control Property

5 posts, 1 answered
  1. Jodie
    Jodie avatar
    59 posts
    09 Oct 2012
    03 Feb 2009
    Link to this post
    Hi all,

    I have created a user control to display product information. The user within sitefinity drops the control onto a page and sets some properties including the productid, thumb image and large image.

    I would like to attach the user control properties thumb image and large image to allow the user to select from the 'Select an Image' popup in sitefinity, where they can select an already uploaded image or upload a new one and it be persisted, however really I am unsure how to go about this.

    I have looked at a few posts and they seem to relate to a user of the actual live page being able to select and upload an image.

    Any help is appreciated, I am really enjoying working with SiteFinity :)


  2. Ivan Dimitrov
    Ivan Dimitrov avatar
    16072 posts
    12 Sep 2017
    04 Feb 2009
    Link to this post
    Hello Jodie,

    You can implement image selector in your control. Then, you will be able to select items from your Images and Libraries folders.


    [WebEditor("Telerik.Libraries.WebControls.ImageSelector, Telerik.Libraries")] 
        public string SelectImage 
            { return this.image; } 
            { this.image = value; } 
        private string image; 

    More information about selectors could be found at

    Best wishes,
    Ivan Dimitrov
    the Telerik team

    Check out Telerik Trainer, the state of the art learning tool for Telerik products.
  3. Jodie
    Jodie avatar
    59 posts
    09 Oct 2012
    04 Feb 2009
    Link to this post
    Hi Ivan,

    Thank you, I didn't realise it was that simple.

    Appreciate your help.

    Thanks again

  4. Jason Yeager
    Jason Yeager avatar
    3 posts
    14 Jan 2009
    04 Mar 2009
    Link to this post
    It is SUPER easy to use the code below to select an image / document, etc....Thanks!

    How does one display the content of the item that was selected?

    I have seen the blog posts that detail how to use content selectors ( but I can't locate how to display an item on the front end.

    Here is my situation:

    I have a custom user control that has a section where an icon is supposed to go.  I have wired the image selector to the control, and can choose an image successfully.  When the control renders on the page, I see the GUID of the content, not the content.  What am I missing?

  5. Pepi
    Pepi avatar
    981 posts
    31 Jan 2017
    05 Mar 2009
    Link to this post
    Hi Jason,

    This is a known issue for the ImageSelector property editor. The fix of the problem will be available in the upcoming release.

    All the best,
    the Telerik team

    Instantly find answers to your questions on the new Telerik Support Portal.
    Check out the tips for optimizing your support resource searches.
Register for webinar
5 posts, 1 answered