Hi :)
I want to use the DNN URL control (its the one which enables u when used to.. brows the File Manager to upload files or choose from already uploaded ones etc..)
now.. this URL control works just fine if placed in a page.. But when I place it inside one of my (DetailsView) control fields.. <<i converted the fields into template fields) it renders stry.. looking exactly the same way it looks in the design mode of source.
I tried placing the control inside an (EmptyTemplateField) of DetailsView and it rendered correctly!! but i cant use it in that place!! because i really need it badly to be placed inside my template fields of DetailsView for both (Insert and Edit) mode of Details View.. (one of my fields is a Map image.. and i want to make use of the File Manager.. my alternative is using FileUpload control.. but i really want to use DNN URL control :(
Here is the code
<asp:DetailsView ID="DetailsView1" runat="server"
AutoGenerateRows="False" DataSourceID="ObjectDataSource2" Height="50px" Width="125px">
<Fields>
<asp:TemplateField HeaderText="LocationMap" SortExpression="LocationMap">
<InsertItemTemplate>
// When placed here.. Renders stry! (like the way it looks in Design Mode) :(
<portal:url id="image1" runat="server" showfiles="True" showlog="False" shownewwindow="False" showtabs="False" showtrack="False" showurls="True" urltype="F" width="300"></portal:url>
</InsertItemTemplate>
<ItemTemplate>
<asp:Label ID="Label9" runat="server" Text='<%# Bind("LocationMap") %>'></asp:Label>
</ItemTemplate>
</asp:TemplateField>
</Fields>
<EmptyDataTemplate>
// When placed here.. Renders okay like it supposed to:)
<portal:url id="image1" runat="server" showfiles="True" showlog="False" shownewwindow="False" showtabs="False" showtrack="False" showurls="True" urltype="F" width="300"></portal:url>
</EmptyDataTemplate>
</asp:DetailsView>
Thank u so much for any advice/Info u might provide :)