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.0no imagesno images
Previous
 
Next
New Post
4/7/2008 12:03 PM
 

after I isntall my module in dnn, it doesn't show images.Can you help me? thanks


Portugal
 
New Post
4/7/2008 12:25 PM
 

Hi ricardo,

did you use relative URLs as the source for the images (mypicture.jpg)?
Try to use absolute URLs (http://www.yoursite.com/Folder/mypicture.jpg).
Try if the URL is right by opening it with your browser. If the picture can be seen, you can use this URL to include your pictures in your module.
Probably your module is in a subfolder and it just can't find the images. 
The problem could be that the current location is not the folder where your module is saved (and the pictures) but the URL of the page (tab). If this is the case, the module looks for the images in this location (where there are no images).

Greetings
                         Alexander

 
New Post
4/7/2008 12:30 PM
 

More information please . . .

Is this a custom module or a DNN core module? If custom . . .

Where are your images stored - the website root's /images folder or in an /images folder under your custom module's sub-folder under DesktopModules? How are you referencing the image url - via CSS or in an image tag? What url are you providing for the image source?  If you are providing the images as part of the module install, have you included them in the .zip file and referenced them in < file> nodes of the dnn manifest file or are they included as part of a resources file? When you view the page that is missing the images, what do you see for the image properties if you right click over a missing image placeholder or in the image tags of the missing images when you view the page's source?

Hopefully these questions will help you discover the problem yourself. Otherwise, please reply with the additional information.


Bill, WESNet Designs
Team Lead - DotNetNuke Gallery Module Project (Not Actively Being Developed)
Extensions Forge Projects . . .
Current: UserExport, ContentDeJour, ePrayer, DNN NewsTicker, By Invitation
Coming Soon: FRBO-For Rent By Owner
 
New Post
4/8/2008 10:31 AM
 

Hi. It's a custom module developed in vs.2008

 

here is one othe the imagens that doesn't show.

 

In .dnn:

 

        <file>

          <path>App_LocalResources</path>

          <name>apagar.png</name>

        </file>

 

in my hard drive:

 

C:\DNN\DesktopModules\gDocVisualiza\App_LocalResources\apagar.png

 

in html:

 

<input type="image" name="dnn$ctr371$ViewgDocVisualiza$ImageButton2" id="dnn_ctr371_ViewgDocVisualiza_ImageButton2" title="Apagar" src="/dnn/DesktopModules/gDocVisualiza/App_LocalResources/apagar.png" style="border-width:0px;width: 16px" />

 

I included the image files in my zip package.

 

 

If I try in my browser:

 

C:\DNN\DesktopModules\gDocVisualiza\App_LocalResources\apagar.png

It opens the image, but if I try

http://localhost/dnn/DesktopModules/gDocVisualiza/App_LocalResources/apagar.png

 

It shows a error message: HTTP 404.0 - Not Found


Portugal
 
New Post
4/8/2008 8:00 PM
 

It appears that you are using the image in an ImageButton control. When setting the ImageUrl property, you should be able to use either of these methods in the .ascx's file server control markup for ImageButton2:

ImageUrl="~/DesktopModules/gDocVisualiza/App_LocalResources/apagar.png"

or

ImageUrl='<%# ModulePath & "App_LocalResources/apagar.png" %>'

The second of these would be used if you are using databinding, such as in a datagrid.

If you are setting the ImageUrl in the codebehind/codefile, you could use:

ImageButton2.ImageUrl=Me.ModulePath & "App_LocalResources/apagar.png"

You may also want to consider creating an images folder - that is, DesktopModules/gDocVisualiza/images - and place the module's images in that folder. I prefer to use the App_LocalResources folder for .resx files only.


Bill, WESNet Designs
Team Lead - DotNetNuke Gallery Module Project (Not Actively Being Developed)
Extensions Forge Projects . . .
Current: UserExport, ContentDeJour, ePrayer, DNN NewsTicker, By Invitation
Coming Soon: FRBO-For Rent By Owner
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0no imagesno images


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