I have a photo gallery of about 4000 pics and am trying to get it to display an alt text for each image. I have tried the two following methods and get the same result with both, they only display the first 4 characters of the field.
My captions at like "2000 Ford Ranger Pickup" and the alt text only shows the year.
First piece of code I wrote:
Expand|Select|Wrap|Line Numbers
- response.write "<td width='410' align='center'><br><IMG SRC=/images/" & rsObj("Folder") & "/" & rsObj("FileName") & " alt=" & rsObj("Caption") & "><br><br><b>" & rsObj("Caption") & "</b><br>"
Expand|Select|Wrap|Line Numbers
- response.write "<td width='410' align='center'><br><IMG SRC=/images/" & rsObj("Folder") & "/" & rsObj("FileName") & " alt=" & Server.HTMLEncode(rsObj("Caption")) & "><br><br><b>" & rsObj("Caption") & "</b><br>"
Thanks
Doug