Getting the image url which is found on a specific page

Posted by Community Admin on 04-Aug-2018 06:25

Getting the image url which is found on a specific page

All Replies

Posted by Community Admin on 16-Dec-2011 00:00

Hello,

I have a user control on my page. This control is supposed to get some images which are found in a specific page. My question is:
1. Do I have to get the id or url of the page first, where the image is found
2. Then get all the images found in the page
3. Select images for the control to display

What is the best way of doing this operation???
Thanks

Posted by Community Admin on 20-Dec-2011 00:00

Hi Ravish,

This is not an easy one, but I can suggest you two ways of achieving your goal:

 -  you can try to parse the HTML and look for the <img> </img> tags in a page and find all images.
 -  another option for you is to look recursively for the control that contains the image on a particular page. You can use FindControl to get the name of a particular control.

Best wishes,
Victor Velev
the Telerik team

Do you want to have your say in the Sitefinity development roadmap? Do you want to know when a feature you requested is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items

This thread is closed