This is a migrated thread and some comments may be shown as answers.

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

1 Answer 401 Views
BinaryImage
This is a migrated thread and some comments may be shown as answers.
OL
Top achievements
Rank 1
OL asked on 03 May 2010, 04:04 PM
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.

1 Answer, 1 is accepted

Sort by
0
Dimo
Telerik team
answered on 10 May 2010, 06:23 AM
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.
Tags
BinaryImage
Asked by
OL
Top achievements
Rank 1
Answers by
Dimo
Telerik team
Share this question
or