Register   Login
     
  Latest Posts  
RE: Ligtbox effect does not working in DNN 5
by smcculloch on 1/09/2009 9:49 AM
RE: Embed the coolest google local search map control
by aviavia on 1/09/2009 8:06 AM
RE: Embed the coolest google local search map control
by odove on 1/09/2009 6:43 AM
RE: Ligtbox effect does not working in DNN 5
by David Eccles on 1/09/2009 6:11 AM
Changing The Home Directory.
by rtnovak on 1/09/2009 1:03 AM
RE: Updating Simple Gallery
by rtnovak on 1/09/2009 12:54 AM
RE: Select Image Button does not work.
by rtnovak on 1/09/2009 12:53 AM
Updating Simple Gallery
by rtnovak on 1/08/2009 9:59 PM
Has pay-per-ad. been added yet?
by wpmilk on 1/08/2009 7:13 PM
Has pay-per-ad. been added yet?
by wpmilk on 1/08/2009 7:13 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:12820


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