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.0Problems with images displaying...Problems with images displaying...
Previous
 
Next
New Post
5/30/2008 11:44 AM
 

Hi all. I am using the following code in a custom module...

 

<asp:Image runat='server' ID='imgRed' ImageUrl='../../Images/StatusRed.gif' AlternateText='Callback overdue' />

the problem is that the image does not appear. I have confirmed the path is correct. I also tried...

<img src='images/StatusRed.gif' alt='Callback overdue'  />

but neither one of them would work. Does DNN handle image tags differently or am I just missing something?

thanks for and help or advice,

Chris

 
New Post
5/30/2008 1:31 PM
 

Maybe this is too simple, but have you tried:

<asp:Image runat='server' ID='imgRed' ImageUrl="~/Images/StatusRed.gif" AlternateText='Callback overdue' />

In my modules, I usually point to the images like this: ImageUrl="~/DesktopModules/MyModule/MyGif.gif"

Bryan

 
New Post
6/2/2008 9:33 AM
 

Thanks for the response Bryan. I tried it the way you suggested but I am still getting the same issue. The image is not showing up.

Any other ideas?

thanks,

Chris

 
New Post
6/2/2008 11:06 AM
 

I just noticed something...

I selected properties on the image that was missing and noticed the path was:

http://localhost:4146/PCMT_Portal_DEV/CallScreen/images/Valid_No.gif

Shouldn't it be something like

http://localhost:4146/PCMT_Portal_DEV/images/Valid_No.gif

The CallScreen is the folder the actual page resides in.

Any suggestions?

thanks for your time,

Chris

 
New Post
6/2/2008 11:34 AM
 

Hi Chris,

when I face this kind of problem I usually work like this: set the image width and height so that a blank border surrounding the image will appear showing a broken link icon:

<img src="mypic.gif" height="100px" weight="200px" alt="my pic" />

then browse to the module and right-click on the blank image, on property listing check the url, this will give you a useful tip on what's wrong.

Best regards,
Dario Rossa

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0Problems with images displaying...Problems with images displaying...


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