Hi,
I'm using DNNs built in URLControl in my Edit Control:
<%@ Register TagPrefix="Portal" TagName="URL" Src="~/controls/URLControl.ascx" %>
...
<Portal:URL ID="ctlImageFile" runat="server" ShowTabs="false" ShowUrls="false" UrlType="U" ShowTrack="false" ShowLog="false" Required="false" />
I changed the UrlType fom "F" to "U" so that I can store the ctlImageFile.Url as a file path (for example: " /Portals/0/community_title.gif") instead of "FileId=x".
The problem is that I want to preselect the URLControl with the existing value when the page is loaded:
ctlImageFile.Url = item.ImageFile;
As long as the image file is located in the portal root directory this seems to work OK.
But when the image file is located in a subdirectory of the portal root directory (for example: " /Portals/0/Images/community_title.gif") it doesn't work anymore.
I guess this is because the folder dropdownlist cannot be set?
Or can I convert a file path to the form "FileID=x"?
Is there a way to fix this?
Thanks in advance!