Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Show / Hide Regions

Status
Not open for further replies.

RamDje

Programmer
Apr 3, 2003
23
US
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top