Small width layout Medium width layout Maximum width layout Small text Medium text Large text
     Search
Downloads Downloads Directory Directory Forums Forums Forge Forge Blogs Blogs        Marketplace Marketplace Careers Program Careers
Community › Forums Register  |  

AspDotNetStoreFront
  Ads  
OnyakTech
 


  Sponsors  

Meet Our Sponsors

SourceGear - Tools for Developers
.: CounterSoft :.
telerik
ExactTarget email software solutions
Merak Mail Server
WebSecureStores -- ASP.NET & DotNetNuke Hosting Solutions
 


DotNetNuke Forums
 
  Forum  General DotNetN...  Extend It! ( Pr...  no images
Previous Previous
 
Next Next
New Post 4/7/2008 10:03 AM
Resolved
User is offline ricardo
41 posts
10th Ranked


no images 

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


Portugal
 
New Post 4/7/2008 10:25 AM
User is offline Alexander Rippert
5 posts
10th Ranked


Re: no images 

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 10:30 AM
User is offline William Severance
842 posts
www.wesnetdesigns.com
7th Ranked






Re: no images 

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
 
New Post 4/8/2008 8:31 AM
User is offline ricardo
41 posts
10th Ranked


Re: no images 

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 6:00 PM
User is offline William Severance
842 posts
www.wesnetdesigns.com
7th Ranked






Re: no images 

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
 
Previous Previous
 
Next Next
  Forum  General DotNetN...  Extend It! ( Pr...  no images
 


Forum Policy

These Discussion Forums are dedicated to the discussion of the DotNetNuke Web Application Framework.

For the benefit of the community and to protect the integrity of the project, 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 DotNetNuke.
2. Discussion or promotion of DotNetNuke product releases under a different brand name are strictly prohibited.
3. No Flaming or Trolling.
4. No Profanity, Racism, or Prejudice.
5. Site Moderators have the final word on approving/removing a thread or post or comment.
6. English language posting only, please.

 


WEBPC™ DotNetNuke® sites for Small Business
WEBPC™ are internet consultants and web hosters catering to the small business market.
www.webpc.biz
Perpetual Motion Interactive Systems Inc.
A solutions company specializing in Microsoft enterprise technologies.
www.perpetualmotion.ca
Icthus Technologies
Building Faith on the Internet
www.icthustech.com

DotNetNuke Corporation   Terms Of Use  Privacy Statement
DotNetNuke®, DNN®, and the DotNetNuke logo are trademarks of DotNetNuke Corporation
Hosted by MaximumASP