Hello,
I have a question regarding the show/hide region behavior. I have an Access DB which holds information for a list of links to external sites either by a text link or the sites logo as a link. I have 4 columns:
MCLlinkID
MCLlink
MCLThumbText
MCLImage
I have given the Client the ability to edit this content by the following:
MCLlink: full URL
MCLThumbText: Link Text/External Site Name
MCLImage: Image File Name (logo.gif)
If the external site gives permission to show the logo, then my Client would enter the image name (logo.gif) and upload the image to the appropriate directory (upload control i added for him). If not, my Client has to enter the site's name or a heading which would link to the site.
What I have done to show the recordset results is the following:
<a href="<%=(rsMCLInclude.Fields.Item("MCLlink").Value)%>" target="_blank"><img src="../images/mclLogos/<%=(rsMCLInclude.Fields.Item("MCLImage").Value)%>" border="0" class="imgMCLBorder" /></a><a class="aRegular" href="<%=(rsMCLInclude.Fields.Item("MCLlink").Value)%>" target="_blank"><%=(rsMCLInclude.Fields.Item("MCLThumbText").Value)%></a>
What is happening is that because of the way I am calling the image, it shows an "X" if no image exists. What i was wondering is....Is there a way to hide that field from being shown if no image exists in the field?
Any help would be greatly appreciated. Thanks in advance.
-RRD
RRD
I have a question regarding the show/hide region behavior. I have an Access DB which holds information for a list of links to external sites either by a text link or the sites logo as a link. I have 4 columns:
MCLlinkID
MCLlink
MCLThumbText
MCLImage
I have given the Client the ability to edit this content by the following:
MCLlink: full URL
MCLThumbText: Link Text/External Site Name
MCLImage: Image File Name (logo.gif)
If the external site gives permission to show the logo, then my Client would enter the image name (logo.gif) and upload the image to the appropriate directory (upload control i added for him). If not, my Client has to enter the site's name or a heading which would link to the site.
What I have done to show the recordset results is the following:
<a href="<%=(rsMCLInclude.Fields.Item("MCLlink").Value)%>" target="_blank"><img src="../images/mclLogos/<%=(rsMCLInclude.Fields.Item("MCLImage").Value)%>" border="0" class="imgMCLBorder" /></a><a class="aRegular" href="<%=(rsMCLInclude.Fields.Item("MCLlink").Value)%>" target="_blank"><%=(rsMCLInclude.Fields.Item("MCLThumbText").Value)%></a>
What is happening is that because of the way I am calling the image, it shows an "X" if no image exists. What i was wondering is....Is there a way to hide that field from being shown if no image exists in the field?
Any help would be greatly appreciated. Thanks in advance.
-RRD
RRD