PDA

View Full Version : Picture link problems


davinder
Jul-17-2009, 03:21 AM
Hi,

I have been developing a ASP.net app that displays a logo picture and a bit of blurb. All info is stored in a DB (including the picture URL on smugmug) and have been having a couple of issues with the images displaying.

If I copy and paste the link out of the DB into my browser it displays the logo fine, but if I set the source of an image using my app the picture only appears sometimes.
If I copy the link out of the image source and paste it into my browser, again the image is fine, so the link is working.

I was wondering if anyone else has been having a similar issue? or has seen this before?

Thanks
Davinder

jfriend
Jul-17-2009, 08:26 AM
Hi,

I have been developing a ASP.net app that displays a logo picture and a bit of blurb. All info is stored in a DB (including the picture URL on smugmug) and have been having a couple of issues with the images displaying.

If I copy and paste the link out of the DB into my browser it displays the logo fine, but if I set the source of an image using my app the picture only appears sometimes.
If I copy the link out of the image source and paste it into my browser, again the image is fine, so the link is working.

I was wondering if anyone else has been having a similar issue? or has seen this before?

Thanks
Davinder I presume it's an issue with the HTML you're using in your app. It's hard for us to comment without seeing the HTML.

davinder
Jul-20-2009, 01:52 AM
Hi jfriend,

good point about the HTML..... and here it is.....

<table id="ctl00_ctl00_ContentPlaceHolder1_ContentPlaceHolder 1_fvwLogo" class="FormView" cellspacing="0" border="0" style="border-collapse: collapse;">
<tbody>
<tr>
<td colspan="2">
<div class="image">
<img id="ctl00_ctl00_ContentPlaceHolder1_ContentPlaceHolder 1_fvwLogo_Image1"
style="border-width: 0px;" src="http://ppa-digital-archive.smugmug.com/photos/586283024_z7n7P-S.jpg"/>
</div>
<div class="Buttons">
<a href="javascript:{showPopup('popupImage');}">Add Logo</a>
<br/>
<a id="ctl00_ctl00_ContentPlaceHolder1_ContentPlaceHolder 1_fvwLogo_lbtnRemove" href="javascript:__doPostBack('ctl00$ctl00$ContentPlaceH older1$ContentPlaceHolder1$fvwLogo$lbtnRemove','')" onclick="return confirm('Are you sure you want to remove this logo?');">Remove Logo</a>
</div>
</td>
</tr>
</tbody>
</table>

I've included the entire HTML for the table, but the image bit is where I have the problem, sometimes it displays and sometimes it doesn't. Copying the link into the address bar always seems to work!

Thanks
Davinder

jfriend
Jul-20-2009, 08:02 AM
Hi jfriend,

good point about the HTML..... and here it is.....

<table id="ctl00_ctl00_ContentPlaceHolder1_ContentPlaceHolder 1_fvwLogo" class="FormView" cellspacing="0" border="0" style="border-collapse: collapse;">
<tbody>
<tr>
<td colspan="2">
<div class="image">
<img id="ctl00_ctl00_ContentPlaceHolder1_ContentPlaceHolder 1_fvwLogo_Image1"
style="border-width: 0px;" src="http://ppa-digital-archive.smugmug.com/photos/586283024_z7n7P-S.jpg"/>
</div>
<div class="Buttons">
<a href="javascript:{showPopup('popupImage');}">Add Logo</a>
<br/>
<a id="ctl00_ctl00_ContentPlaceHolder1_ContentPlaceHolder 1_fvwLogo_lbtnRemove" href="javascript:__doPostBack('ctl00$ctl00$ContentPlaceH older1$ContentPlaceHolder1$fvwLogo$lbtnRemove','')" onclick="return confirm('Are you sure you want to remove this logo?');">Remove Logo</a>
</div>
</td>
</tr>
</tbody>
</table>

I've included the entire HTML for the table, but the image bit is where I have the problem, sometimes it displays and sometimes it doesn't. Copying the link into the address bar always seems to work!

Thanks
Davinder Sorry, but I have no idea what's wrong. The image URL looks fine.