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

HomeHomeDevelopment and...Development and...DNN Platform (o...DNN Platform (o...Image Problem in DNNImage Problem in DNN
Previous
 
Next
New Post
5/8/2009 3:11 AM
 

Hi All,

     I have created module(ascx page ) with few images . While accessing that page from portal i can't see the images,it is just displaying like . wat might be the problem? Plz help!!!!!

 

 
New Post
5/8/2009 1:35 PM
 

The path for the image is probably not correct. Is the image just not displaying, you get the big red X?  


John Eimer
 
New Post
5/15/2009 10:33 AM
 

it's truly image path problem. And if your checking web site in IE than as john says you can see big red X and firefox it's different icon.

 

 
New Post
5/15/2009 11:58 AM
 

The best way to troubleshoot image path problems is to look at the html source of the rendered page using either your browser's View-->Source menu item or the IE developer tool or the FireFox Firebug tool to see what path has been assigned to the src attribute of the image tag. Compare that path with the actual path to the image file.

Since you apparently pasted the image from your site into this forum, I was able to see that the path of the missing image is as follows:

.../DNN/Home/tabid/Images/restore.jpg

This is obviously not a valid path. What is the full path to the actual image location? How are you setting the src attribute of the image tag in your module control's markup or code?

Since the images folder in a DNN website root contains an image named restore.gif, I'll assume that this is the one you are trying to display. If you are displaying the the using an <asp:image . . . > control or an <asp:imagebutton . . . > control in your module control's markup, I would use the following relative path (note the use of the ~ which will be resolved to the root path of the site:

ImageUrl="~/images/restore.gif"


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
HomeHomeDevelopment and...Development and...DNN Platform (o...DNN Platform (o...Image Problem in DNNImage Problem in DNN


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