Hi,
Im new to DNN development, and am having problems with the URL control.
The ascx file contains the following:
<%@ Register TagPrefix="Portal" TagName="URL" Src="~/controls/URLControl.ascx" %>
...
<tr>
<td class="SubHead" width="160">
<dnn:Label ID="plLinkUrl" runat="server" ControlName="ctlLinkUrl" Suffix=":"></dnn:Label>
</td>
<td width="365">
<Portal:URL ID="ctlLinkUrl" runat="server" Width="250" ShowNewWindow="True" ShowUsers="False" ShowLog="False" />
</td>
</tr>
....
And to manage this I have the following code in the code behind file (c#):
ctlLinkUrl.Url = MyObject.LinkUrl;
ctlLinkUrl.ShowDatabase = true;
ctlLinkUrl.ShowSecure = true;
Now, my issue is that the saving is working fine, however when I open an existing object, the edit screen, which uses the same code, dosent show all of the fields properly.
This control show the type of link, the link details (url, file folder / name or page(tab) name). When you have a complete URL, it works fine. When you have a file or page link, it shows the type correctly, and the folder (if applicaple), but not the actual page or file i had previously selected. (It just defaults to the first item in the appropriate dropdown).
Any help would be apprecieated. I am using DNN 5.4.2, just in case it is a known bug in that version.
Thanks in advance,
Lee