4 Replies - 750 Views - Last Post: 08 February 2009 - 12:01 AM Rate Topic: -----

#1 vivekrane1986  Icon User is offline

  • D.I.C Head

Reputation: 2
  • View blog
  • Posts: 102
  • Joined: 02-August 08

Con't see image in Content page

Posted 07 February 2009 - 01:17 AM

Hi All

I am Using VWD 2008. I have a Master Page with logo

'Code In Master Page
 <asp:Panel ID="plnMasterLogoImage" runat="server">
				<img alt="Logo" src="~/Images/logo.gif" 
					style="width: 194px; height: 130px" />
			</asp:Panel>

'Code in Content page

<%@ Page Title="" Language="vb" AutoEventWireup="false" MasterPageFile="~/Default.Master" CodeBehind="AddEditClientContact.aspx.vb" Inherits="ProjectTracker.AddEditClientContact1" %>




The problem is I am not able to see the image Runtime. At design time image is visible. Please Help me with this.

Thanks and Regards,
Vivs

Is This A Good Question/Topic? 0
  • +

Replies To: Con't see image in Content page

#2 b.ihde  Icon User is offline

  • D.I.C for life
  • member icon

Reputation: 43
  • View blog
  • Posts: 1,070
  • Joined: 29-September 08

Re: Con't see image in Content page

Posted 07 February 2009 - 03:06 AM

Hi!

Try to write:
<img alt="Logo" src="./Images/logo.gif" 
					style="width: 194px; height: 130px" />



i changed: "~/Images..." to "./Images..."

Hope that helps

B.Ihde
Was This Post Helpful? 0
  • +
  • -

#3 General Adamus  Icon User is offline

  • D.I.C Head

Reputation: 9
  • View blog
  • Posts: 110
  • Joined: 05-February 09

Re: Con't see image in Content page

Posted 07 February 2009 - 08:47 AM

src="../images/myimage.bmp"

Adamus
Was This Post Helpful? 1

#4 PsychoCoder  Icon User is offline

  • Google.Sucks.Init(true);
  • member icon

Reputation: 1641
  • View blog
  • Posts: 19,853
  • Joined: 26-July 07

Re: Con't see image in Content page

Posted 07 February 2009 - 10:14 AM

I personally use ResolveClientUrl() in my markup so I never have to worry if I have the relative path right. Like this

<asp:Panel ID="plnMasterLogoImage" runat="server">
				<img alt="Logo" src='<%=ResolveClientUrl("~/Images/logo.gif")%>'
					style="width: 194px; height: 130px" />
			</asp:Panel>


Was This Post Helpful? 1
  • +
  • -

#5 vivekrane1986  Icon User is offline

  • D.I.C Head

Reputation: 2
  • View blog
  • Posts: 102
  • Joined: 02-August 08

Re: Con't see image in Content page

Posted 08 February 2009 - 12:01 AM

Thanks all its working now. Last two are working fine. Thanks for the help
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1