I am in the middle of creating an asp.net (c#) user control (an image gallery). I am struggling to get the path of an image though...
What the control will do: The user will add the macro to their site and set a parameter of 'folderName' - the foldername corresponds to the name of the folder within media; images for the gallery will be added to the media section.
The control then recursively hunts through the 'GetRootMedias' nodes and looks for a type of folder with the given folder name - this then gives me .Children of Media
I have the ID of these images and have tried NiceUrl, NiceUrlFullPath but am getting nothing returning.
Is there a property/method that will return an image path?
How do i get an image path in asp.net?
Hi all,
I am in the middle of creating an asp.net (c#) user control (an image gallery). I am struggling to get the path of an image though...
What the control will do:
The user will add the macro to their site and set a parameter of 'folderName' - the foldername corresponds to the name of the folder within media; images for the gallery will be added to the media section.
The control then recursively hunts through the 'GetRootMedias' nodes and looks for a type of folder with the given folder name - this then gives me .Children of Media
I have the ID of these images and have tried NiceUrl, NiceUrlFullPath but am getting nothing returning.
Is there a property/method that will return an image path?
Cheers in advance
Darren
Hi Darren,
If you need the path to the image for which you know the media id, use
Hope this helps.
Regards,
/Dirk
Hi Dirk,
Perfect, many thanks :-D
Is there a reference list of the media properties kicking around? rather than knocking up a script to get their names.
Darren
is working on a reply...