Getting the image url which is found on a specific page
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
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