How to get the Telerik's WebResource.axd URL of an image?

2 posts, 0 answers
  1. OL
    OL avatar
    20 posts
    Member since:
    Jan 2010

    Posted 03 May 2010 Link to this post

    Hello,

    I'm using BinaryImages in data controls (such as RadGrid) and it's great!
    But I've a special need:
    I'd like to get dynamically the URL of an image (/Telerik.Web.UI.WebResource.axd?imgid=XXXX...).

    I've a Flash swf application which uses an XML configuration file to display pictures.
    I use an ASP.NET ashx handler that generate my custom configuration.
    In the handler, I've the PK ID of the object (the picture is one of the field) and the byte[]. I don't if it helps...

    Is there a Telerik solution for that?

    Thanks.
  2. Dimo
    Admin
    Dimo avatar
    8333 posts

    Posted 10 May 2010 Link to this post

    Hi Maxime,

    If you subscribe to the RadBinaryImage's OnDataBinding or OnPreRender server event, you will be able to retrieve the URL from the ImageUrl property of the control.

    Kind regards,
    Dimo
    the Telerik team

    Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
  3. UI for ASP.NET Ajax is Ready for VS 2017
Back to Top