Images not getting displayed
-
Hi, I am trying to load images in my login page,but they are not getting displayed.I am also using image button for images of submit and reset.Tried using ~ but still not getting displayed.
<asp:Image ID="Image1" runat="server" ImageUrl="~/Images/img snip.jpg" Style="z-index: 100;left: 78px; position: absolute;
top: 189px" AlternateText="img" />scarface
-
Hi, I am trying to load images in my login page,but they are not getting displayed.I am also using image button for images of submit and reset.Tried using ~ but still not getting displayed.
<asp:Image ID="Image1" runat="server" ImageUrl="~/Images/img snip.jpg" Style="z-index: 100;left: 78px; position: absolute;
top: 189px" AlternateText="img" />scarface
scar_face wrote:
am trying to load images in my login page,but they are not getting displayed
Check your image path is valid or not !!
cheers, Abhijit CodeProject MVP Web Site:abhijitjana.net
-
Hi, I am trying to load images in my login page,but they are not getting displayed.I am also using image button for images of submit and reset.Tried using ~ but still not getting displayed.
<asp:Image ID="Image1" runat="server" ImageUrl="~/Images/img snip.jpg" Style="z-index: 100;left: 78px; position: absolute;
top: 189px" AlternateText="img" />scarface
Right click on the cross image and check the path which is it taking. You can also view the source and check the path from which the image is mapped. It is preferred to set the image path dynamically in the code-behind with the fully qualified virtual path like shown below: img1.Src = "http://localhost/demoapp/images/img\_bak.gif"; Regards Saanj
Either you love IT or leave IT...
-
Hi, I am trying to load images in my login page,but they are not getting displayed.I am also using image button for images of submit and reset.Tried using ~ but still not getting displayed.
<asp:Image ID="Image1" runat="server" ImageUrl="~/Images/img snip.jpg" Style="z-index: 100;left: 78px; position: absolute;
top: 189px" AlternateText="img" />scarface
Is it possible that only logged in members have permission to view these images ?
Christian Graus Driven to the arms of OSX by Vista. "! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums. I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
-
Is it possible that only logged in members have permission to view these images ?
Christian Graus Driven to the arms of OSX by Vista. "! i don't exactly like or do programming and it only gives me a headache." - spotted in VB forums. I can do things with my brain that I can't even google. I can flex the front part of my brain instantly anytime I want. It can be exhausting and it even causes me vision problems for some reason. - CaptainSeeSharp
-
Right click on the cross image and check the path which is it taking. You can also view the source and check the path from which the image is mapped. It is preferred to set the image path dynamically in the code-behind with the fully qualified virtual path like shown below: img1.Src = "http://localhost/demoapp/images/img\_bak.gif"; Regards Saanj
Either you love IT or leave IT...
-
You have to remove the image path from the image definition in aspx as well. Try to check what is the image url (virtual path) and then paste it into that code. Are you trying it in your localhost or somewhere else? If it is not in localhost then permission can be an issue. Just paste image path that you are specifying in the code, in the browser and check manually whether the image is getting displayed or not.
There is no foolish question, there is no final answer...