Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0DNN URL control inside DetailsViewDNN URL control inside DetailsView
Previous
 
Next
New Post
4/29/2006 3:16 AM
 

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 :)

 

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0DNN URL control inside DetailsViewDNN URL control inside DetailsView


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out