Forums
This topic is locked
hiding email link if no address is available
Posted 04 Jul 2003 11:33:26
1
has voted
04 Jul 2003 11:33:26 kirsty burgoine posted:
On my website I have a list of all the shops that sell certain products of ours, its all listed in a Microsoft Access 2000 database and I use the repeat region function to display it. I also have a detail page that shows the specific shops contact info which includes a link for people to email the shop directly. I've set the link up to work how I want like this:<% emailtodisplay = rsAdmiraDealers("email"

<a href="mailto:<% = emailtodisplay %>"><b>Send Email</b></a>
What I want to do is, because not all of the shops have email addresses I don't want the link to show if there is no email address in the database for that shop. Its confusing to people using the site if the email window opens anyway but without any address in the send to bar. I assume its a similar process to the navigation on repeated region pages (show if) but I'm taking my first steps in doing more in ASP instead of letting UltraDev do it all and am not sure quite how to attempt it.
Hope someone can help
Kirsty
Replies
Replied 04 Jul 2003 13:55:23
04 Jul 2003 13:55:23 David Behan replied:
Click here dude...
www.dmxzone.com/forum/FORUM.asp?FORUM_ID=3&CAT_ID=2&Forum_Title=Dreamweaver+UltraDev
_________________________
WinXP : IIS 5.1 : StudioMX : ASP : VBScript
www.dynamic.ie
www.dmxzone.com/forum/FORUM.asp?FORUM_ID=3&CAT_ID=2&Forum_Title=Dreamweaver+UltraDev
_________________________
WinXP : IIS 5.1 : StudioMX : ASP : VBScript
www.dynamic.ie