Register   Login
     
  Latest Posts  
custom field type:url
by aviavia on 11/23/2008 7:13 PM
Module Development Techniques
by hchattaway on 11/23/2008 5:14 PM
Customizing the URL a little further
by tmahmud on 11/23/2008 4:11 PM
RE: Google Maps
by smcculloch on 11/23/2008 10:29 AM
RE: I cant get rss feeds to work correctly
by smcculloch on 11/23/2008 10:27 AM
captcha still proken
by StatisticsIO on 11/23/2008 6:11 AM
RE: Comments RSS feeds
by StatisticsIO on 11/23/2008 6:09 AM
Regions and Copuntry List scripts for Location Types
by rodneyjoyce on 11/23/2008 4:56 AM
RE: BUG: Sort by: Price
by usheen on 11/23/2008 1:23 AM
RE: News Articles 301 Redirect
by mcox on 11/22/2008 11:16 PM
  Forums  
Subject: Image not visible in the module
Prev Next
You are not authorized to post a reply.

Author Messages
nine rockyUser is Offline
Registered Users
Nuke Newbie
Nuke Newbie
Posts:3

5/25/2005 3:56 AM  
Hi,


      I have succesfully added a C# sample module.

This module consists of a simple html image (<IMG >  tag.


IMG id="samImage" alt="" src="Images\QBOSERD-1.jpg"


The above image tag is which is shown above.

Myproblem is when the dotnetnuke home page is loaded the image is
visible to be.When i login as "host" the image is not visible. A small
'x' is visible in place of the image.


Please help me in solving this problem.

I will be very thankfull on adivice.
Scott McCullochUser is Offline
Administrators
Nuke Master
Nuke Master
Posts:12450


5/25/2005 5:25 AM  
I think the path would be wrong if you have friendly urls on..
 
You could try src="<%= Page.ResolveUrl("~/Images/Image.gif") %>
 
This may help.

Scott McCulloch
Site Administrator
nine rockyUser is Offline
Registered Users
Nuke Newbie
Nuke Newbie
Posts:3

5/25/2005 10:43 PM  
I have used this


src="<% =Page.ResolveUrl(DesktopModules/Module.Name/images/QBOSERD-1.jpg)"%>"


it throws an error  "unhanded error loading module".


I am able to view the image in both cases before login and after login.  if give the complete path

C:/inetpub/wwwroot/dotnetnuke/desktopmodule/module.Name/Images/QBOSERD-1.jpg
nine rockyUser is Offline
Registered Users
Nuke Newbie
Nuke Newbie
Posts:3

5/25/2005 10:47 PM  
Posted By bhuvanagiri on 5/25/2005 10:43:39 PM
I have used this


src="<% =Page.ResolveUrl(DesktopModules/Module.Name/images/QBOSERD-1.jpg)"%>"


it throws an error  "unhanded error loading module".


I am able to view the image in both cases before login and after login.  if give the complete path

C:/inetpub/wwwroot/dotnetnuke/desktopmodule/module.Name/Images/QBOSERD-1.jpg


But i think it is not a good way to give complete path.

If we give the complete path of the image is visible in  local system only.


You are not authorized to post a reply.
Forums > General > Bugs & Problems > Image not visible in the module



ActiveForums 3.7