Image access problems.http://forums.asp.net/t/1514266.aspx/1?Image+access+problems+Thu, 14 Jan 2010 20:58:47 -050015142663617765http://forums.asp.net/p/1514266/3617765.aspx/1?Image+access+problems+Image access problems. <p>I have an image&nbsp;at this URL: <a href="http://www.equinexgames.com/images/ads/exgLOGO.png"> http://www.equinexgames.com/images/ads/exgLOGO.png</a>&nbsp;</p> <p>When I paste this directly into Explorer, it shows the image.</p> <p>&nbsp;</p> <p>When I have this URL in an image on an ASP page, it doen not get displayed.</p> <p>You can see it failing here: <a href="http://www.hiddenhollowchr.com">www.hiddenhollowchr.com</a> .&nbsp; It's the empty image under the manu on the left side of the screen.</p> <p>The client side code is :</p> <p><span>&lt;<span>img</span> <span>title</span>=<span>&quot;Strategy horsback competitions&quot;</span> <span>src</span>=<span>&quot;http://www.equinexgames.com/images/ads/exgLOGO.png&quot;</span> <span>style</span>=<span>&quot;height:100px;width:120px;border-width:0px;&quot;</span> /&gt;</span><br> </p> <p>This points to the correct location.</p> <p>&nbsp;</p> <p>I am not sure how to get this to work. Is there some setting I should be setting on the server where these images reside?</p> <p>&nbsp;</p> <p>Please help.</p> <p>&nbsp;</p> <p>thank you</p> <p>&nbsp;</p> 2010-01-14T15:51:22-05:003617850http://forums.asp.net/p/1514266/3617850.aspx/1?Re+Image+access+problems+Re: Image access problems. <p>I attempted to view the image using the URL you have there, but the firewall on the server hosting the file stopped me from directly calling the image URL. This means they don't want people using up THEIR bandwidth for YOUR website.</p> <p>Common security measure.&nbsp; Copy the image locally into your project and access it that way.</p> <p>Wil<br> </p> 2010-01-14T16:36:41-05:003617867http://forums.asp.net/p/1514266/3617867.aspx/1?Re+Image+access+problems+Re: Image access problems. <p>you may have tried it when I was messing with it. Please try again. When I click on the link or paste it into&nbsp;Explorer, it shows. So the server is not denying access to this file.</p> <p>&nbsp;</p> <p>I am trying to do it this way instead of having the image localy because I want to put that image into other websites without having to copy it localy to their site. </p> <p>And.. if in the future, I change this brand, I want it to change everywhere that it is inserted instead of having to replace the image on every web site it is on.&nbsp;Like an advertising banner.</p> <p>&nbsp;</p> <p>Funny thing is that when I swich the IDE to the design view for that page, the designer does retrieve the image. Only when I publish it to the website, I start having issues.</p> <p>&nbsp;</p> <p>Could it have something to do with the fact that both of the websites are on the same server? Meaning that the image from one website is needed on another website, but both websites are served from the same server, just different virtual paths.</p> 2010-01-14T16:46:51-05:003617885http://forums.asp.net/p/1514266/3617885.aspx/1?Re+Image+access+problems+Re: Image access problems. <p>In my case, it is working fine. Please see the attachment and I see EXG logo. Please check online before you run this.</p> <p>&nbsp;</p> 2010-01-14T16:58:24-05:003617895http://forums.asp.net/p/1514266/3617895.aspx/1?Re+Image+access+problems+Re: Image access problems. <p>I was able to see the image under the left side menu, I'm using chrome and fire fox, but, looks like IE in not capable of access the file, try tu use a jpg format</p> 2010-01-14T17:06:11-05:003617896http://forums.asp.net/p/1514266/3617896.aspx/1?Re+Image+access+problems+Re: Image access problems. <p>Hi rmpasha,</p> <p>&nbsp;</p> <p>Did you leave an attachement with your post? how do I find it? I don't see a link to any attachment on your post.</p> <p>&nbsp;</p> <p>thanks&nbsp;</p> 2010-01-14T17:06:18-05:003617933http://forums.asp.net/p/1514266/3617933.aspx/1?Re+Image+access+problems+Re: Image access problems. <p>I have changed the image to a JPG and still the same thing.</p> <p>I need this file either in PNG&nbsp;or GIF because I need the background transparent.</p> <p>&nbsp;</p> <p>I have now tried PNG, GIF, and JPG. All three versions are on the&nbsp;web server right not but none of them work in the image.&nbsp;</p> 2010-01-14T17:24:32-05:003617965http://forums.asp.net/p/1514266/3617965.aspx/1?Re+Image+access+problems+Re: Image access problems. <p>try to use this code line</p> <p>&lt;asp:Image ID=&quot;Image1&quot; runat=&quot;server&quot; ImageUrl=&quot;http://www.equinexgames.com/images/ads/exgLOGO.png&quot; /&gt;</p> <p>it works on chrome, firefox &amp; IE</p> 2010-01-14T17:40:36-05:003617993http://forums.asp.net/p/1514266/3617993.aspx/1?Re+Image+access+problems+Re: Image access problems. <p>It does not work on my IE. IE8.</p> <p>&nbsp;</p> <p>Here is the code from the aspx&nbsp;file.</p> <p><font color="#ff0000" size="2"><font color="#ff0000" size="2">&lt;a href</font></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">=&quot;http://www.equinexgames.com&quot;</font></font><font size="2"> </font><font color="#0000ff" size="2"><font color="#0000ff" size="2">&gt;</font></font><font size="2"> </font></p> <p><font color="#0000ff" size="2"><font color="#0000ff" size="2">&lt;</font></font><font color="#a31515" size="2"><font color="#a31515" size="2">asp</font></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">:</font></font><font color="#a31515" size="2"><font color="#a31515" size="2">Image</font></font><font size="2"> </font><font color="#ff0000" size="2"><font color="#ff0000" size="2">Height</font></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">=&quot;100px&quot;</font></font><font size="2"> </font><font color="#ff0000" size="2"><font color="#ff0000" size="2">Width</font></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">=&quot;120px&quot;</font></font><font size="2"> </font><font color="#ff0000" size="2"><font color="#ff0000" size="2">ToolTip</font></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">=&quot;Strategy horsback competitions&quot;</font></font><font size="2"> </font><font color="#ff0000" size="2"><font color="#ff0000" size="2">runat</font></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">=&quot;server&quot;</font></font><font size="2"> </font><font color="#ff0000" size="2"><font color="#ff0000" size="2">ImageUrl</font></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">=&quot;http://www.equinexgames.com/images/ads/exgLOGO.jpg&quot;</font></font><font size="2"> </font><font color="#ff0000" size="2"><font color="#ff0000" size="2">AlternateText</font></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">=&quot;Strategy horsback competitions&quot;</font></font><font size="2"> </font><font color="#ff0000" size="2"><font color="#ff0000" size="2">BorderStyle</font></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">=&quot;None&quot;</font></font><font size="2"> </font><font color="#0000ff" size="2"><font color="#0000ff" size="2">/&gt;</font></font><font size="2"> </font></p> <p><font size="2"></font>&nbsp;</p> <p><font size="2">&lt;/a&gt;</font></p> 2010-01-14T17:53:10-05:003618000http://forums.asp.net/p/1514266/3618000.aspx/1?Re+Image+access+problems+Re: Image access problems. <p>Hi,</p> <p>I will suggest you copy the Image file locally to this project.That&nbsp;should help.I also think this is not good design to&nbsp;refer our resource files like that.</p> <p>&nbsp;</p> <p>Thanks,</p> <p>&nbsp;</p> 2010-01-14T17:56:39-05:003618008http://forums.asp.net/p/1514266/3618008.aspx/1?Re+Image+access+problems+Re: Image access problems. <p>Hi bam_usic,</p> <p>&nbsp;</p> <p>If you have read the posts in this thread you would know that your suggestion has already been made and I have stated my reason&nbsp;for why I can't use the local file method.</p> <p>&nbsp;</p> <p>If you can't provide assistance that fits the problem at hand, why bother answering? I would never take advice on design from a person who has no attention to details and does not read the complete problem before jumping to an answer.</p> <p>&nbsp;</p> <p>but thanks for trying, not very hard, but trying..</p> <p>&nbsp;</p> <p>&nbsp;</p> 2010-01-14T18:01:16-05:003618009http://forums.asp.net/p/1514266/3618009.aspx/1?Re+Image+access+problems+Re: Image access problems. <p>it is working, check on your proxy server...</p> 2010-01-14T18:01:38-05:003618021http://forums.asp.net/p/1514266/3618021.aspx/1?Re+Image+access+problems+Re: Image access problems. <p>Hi andresurena,</p> <p>&nbsp;</p> <p>thank you for&nbsp;your advice.</p> <p>&nbsp;</p> <p>Not sure how to check in on my Proxy server.</p> <p>Can you provide steps of what I should do?</p> <p>&nbsp;</p> <p>I change the code, I publish to the server and then I refresh the browser. The image is not there. Maybe it's something with my browser?&nbsp;</p> 2010-01-14T18:08:09-05:003618048http://forums.asp.net/p/1514266/3618048.aspx/1?Re+Image+access+problems+Re: Image access problems. <p></p> <blockquote><span class="icon-blockquote"></span> <h4>dzieba</h4> <p>Hi rmpasha,</p> <p>&nbsp;</p> <p>Did you leave an attachement with your post? how do I find it? I don't see a link to any attachment on your post.</p> <p>&nbsp;</p> <p>thanks&nbsp;</p> <p></p> </blockquote> <p></p> <p>sorry about this. I forgot to attach it. But I cannot attach here, I have to show you in link. For this I have to upload page somewhere and only can add here link. If you really want to see it, I also will do it. I tested only in IE, it is fine.</p> <p>&nbsp;</p> <p></p> 2010-01-14T18:21:40-05:003618054http://forums.asp.net/p/1514266/3618054.aspx/1?Re+Image+access+problems+Re: Image access problems. <p>Hi rmpasha,</p> <p>&nbsp;</p> <p>Can you just post an explanation and the relavent code here? I am only interested in the image working with a URL.</p> 2010-01-14T18:25:37-05:003618063http://forums.asp.net/p/1514266/3618063.aspx/1?Re+Image+access+problems+Re: Image access problems. <p>I didn't change anything in&nbsp;your code. see the code below. If you give me your email id, I also&nbsp;can send&nbsp;the&nbsp;screen shot.</p> <pre class="prettyprint">&lt;html xmlns=&quot;http://www.w3.org/1999/xhtml&quot;&gt; &lt;head runat=&quot;server&quot;&gt; &lt;title&gt;&lt;/title&gt; &lt;/head&gt; &lt;body&gt; &lt;form id=&quot;form1&quot; runat=&quot;server&quot;&gt; &lt;div&gt; &lt;img title=&quot;Strategy horsback competitions&quot; src=&quot;http://www.equinexgames.com/images/ads/exgLOGO.png&quot; style=&quot;height:100px;width:120px;border-width:0px;&quot; /&gt; &lt;/div&gt; &lt;/form&gt; &lt;/body&gt; &lt;/html&gt;</pre> <p><br> &nbsp;</p> 2010-01-14T18:33:04-05:003618087http://forums.asp.net/p/1514266/3618087.aspx/1?Re+Image+access+problems+Re: Image access problems. <p>cau u give a try</p> <p><font color="#a31515" size="2"><font color="#a31515" size="2">&lt;asp</font></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">:</font></font><font color="#a31515" size="2"><font color="#a31515" size="2">ImageButton</font></font><font size="2"> </font><font color="#ff0000" size="2"><font color="#ff0000" size="2">ID</font></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">=&quot;Image1&quot;</font></font><font size="2"> </font><font color="#ff0000" size="2"><font color="#ff0000" size="2">Height</font></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">=&quot;100px&quot;</font></font><font size="2"> </font><font color="#ff0000" size="2"><font color="#ff0000" size="2">Width</font></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">=&quot;120px&quot;</font></font><font size="2"> </font><font color="#ff0000" size="2"><font color="#ff0000" size="2">ToolTip</font></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">=&quot;Strategy horsback competitions&quot;</font></font><font size="2"> </font><font color="#ff0000" size="2"><font color="#ff0000" size="2">runat</font></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">=&quot;server&quot;</font></font><font size="2"> </font><font color="#ff0000" size="2"><font color="#ff0000" size="2">ImageUrl</font></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">=&quot;http://www.equinexgames.com/images/ads/exgLOGO.jpg&quot;</font></font><font size="2"> </font><font color="#ff0000" size="2"><font color="#ff0000" size="2">AlternateText</font></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">=&quot;Strategy horsback competitions&quot;</font></font><font size="2"> </font><font color="#ff0000" size="2"><font color="#ff0000" size="2">BorderStyle</font></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">=&quot;None&quot; </font></font><font color="#ff0000" size="2"><font color="#ff0000" size="2">PostBackUrl<font color="#0000ff" size="2"><font color="#0000ff" size="2">=&quot;<a href="http://www.equinexgames.com">http://www.equinexgames.com</a>&quot;</font></font></font></font><font color="#0000ff" size="2"><font color="#0000ff" size="2">&gt;</font></font> </p> <p><font size="2">instead of &lt;a href....&nbsp; &gt; and image control. can u use imagebutton directly...?</font> </p> <p><font size="2">hope this helps...</font>&nbsp; </p> <p>&nbsp;</p> 2010-01-14T18:50:53-05:003618098http://forums.asp.net/p/1514266/3618098.aspx/1?Re+Image+access+problems+Re: Image access problems. <p>I tried the imagebutton directly and still same proble.</p> <p>I have both on the website&nbsp;now and both are blank.&nbsp;</p> 2010-01-14T18:57:20-05:003618100http://forums.asp.net/p/1514266/3618100.aspx/1?Re+Image+access+problems+Re: Image access problems. <p>rmpasha,</p> <p>&nbsp;</p> <p>So what you are saying is that you&nbsp;can see the image using IE and you did not modify any code?</p> <p>&nbsp;</p> <p>IF so, this means that it works&nbsp;for some people but not others. What&nbsp;would cause this?&nbsp;</p> 2010-01-14T18:59:38-05:003618110http://forums.asp.net/p/1514266/3618110.aspx/1?Re+Image+access+problems+Re: Image access problems. <p>i tried&nbsp;calling&nbsp;that image in my web page on local...... and&nbsp;image is getting displayed on my page.</p> <p>at the same time, same image is not being displayed on u r web page...... (on IE8)</p> <p>so.... there seems no problem&nbsp;from&nbsp;host of that image. </p> <p>&nbsp;</p> <p>&nbsp;</p> 2010-01-14T19:06:47-05:00