I have a module that rotates a series of user defined images on the home page. Pretty simple. I also want to let the user define an internal link for each image. To that end I have a field,
<asp:TextBox ID="LinkPathTextBox" runat="server" Text='<%# Bind("LinkPath") %>' Width="264px" Visible="true"></asp:TextBox>
that, when populated with data, inserts that data into the correct database table. If I put data in that field directly, it works on submit. However, I want to leverage the urlControl control provided by dnn. I've added the kind of control that I want,
<Portal:URL ID="link1" runat="server" ShowFiles="false" ShowLog="False" ShowNewWindow="False" ShowTabs="True" ShowTrack="False" ShowUrls="False" UrlType="F" Width="300"></Portal:URL>
but now, when someone selects one of the portal pages from that urlControl, I need that selection to get placed in the TextBox "LinkPathTextBox".
Short of some javascript hack, please help me understand how to do this. It's probably very simple, but I haven't the first clue where to go to figure it out.
To demonstrate the abyss that is my ignorance my thoughts run like this:
<asp:TextBox ID="LinkPathTextBox" runat="server" Text='<Portal:URL ID="link1" runat="server" ShowFiles="false" ShowLog="False" ShowNewWindow="False" ShowTabs="True" ShowTrack="False" ShowUrls="False" UrlType="F" Width="300"></Portal:URL><%# Bind("LinkPath") %>' Width="264px" Visible="true"></asp:TextBox>