This is a forum where members new and old can come to ask questions and get info and opinions. It is not a place to advertise your business or have other forms of advertising, whether it be in your posts or signature.

All links in the forum will not be indexed by Search Engines and any unapproved forms of advertising or spam will be dealt with accordingly, deleted, and that member's account banned.

Forums

Overview » ASP » Same Two Recordset fields on One Page
Reply

Same Two Recordset fields on One Page

Jeff Beyer
Member



Since: 02 Mar 2003
Posts: 7
Posted 06 Mar 2010 19:14:51

I use the Pure ASP upload and Smart Image Processor to upload images to my website. I am trying to use two of the exact same recordset field names on the same page.

When I use the code below it will show a broken link for the thumbnail, but the detail image will work fine.

example:
Insert recordset field for for thumbnail using _small.jpg
Hyperlink to detail image

Code Example:
<a href="../images/gallery/<%=(rsImage.Fields.Item("ImageCLM".Value)%>" rel="lightbox" title="<%=(rsImage.Fields.Item("CommentCLM".Value)%>"><img src="../images/gallery/<%= Thumbnail("_small", rsImage.Fields.Item("ImageCLM".Value) %>" alt="" border="0" /></a>

Any help on this would be great!

Thanks,

execfro

I use the Pure ASP upload and Smart Image Processor to upload images to my website. I am trying to use two of the exact same recordset field names on the same page.

When I use the code below it will show a broken link for the thumbnail, but the detail image will work fine.

example:
Insert recordset field for for thumbnail using _small.jpg
Hyperlink to detail image

Code Example:
<a href="../images/gallery/<%=(rsImage.Fields.Item("ImageCLM".Value)%>" rel="lightbox" title="<%=(rsImage.Fields.Item("CommentCLM".Value)%>"><img src="../images/gallery/<%= Thumbnail("_small", rsImage.Fields.Item("ImageCLM".Value) %>" alt="" border="0" /></a>

Any help on this would be great!

Thanks,

execfro
Jeff Beyer
Member



Since: 02 Mar 2003
Posts: 7
Replied 06 Mar 2010 20:17:53
Solved. Changed the memo field to text field in the database.

Reply to this topic

Message
Reply
Follow us on Facebook Follow us on twitter Subscribe to the RSS feed
Activate your free membership today | Login | Currency