Forums

This topic is locked

Detail Pages

Posted 19 Oct 2001 13:53:44
1
has voted
19 Oct 2001 13:53:44 david bloomfield posted:
Hello

I have a web page which display customer testimonials. Some of these testimonials have an additional letter with them. I would like to display the letter as a detail page.

My problem is how do i hide the link to a detail page when there is no detail page to go to? i.e. customer has not submitted a letter.

thanks david

Replies

Replied 19 Oct 2001 16:12:54
19 Oct 2001 16:12:54 Owen Eastwick replied:
Asuming your'e using ASP / VBScript.

Put a bit of code in the table cell, somthing like:
<pre id=code><font face=courier size=2 id=code>
&lt;% If (YourRecordsetName.Fields.Item("LetteField".Value) &lt;&gt; "" Then%&gt;&lt;a href="DetailPage.asp&gt;View Details&lt;/a&gt;&lt;% Else %&gt;& nbsp&lt;% End If %&gt;
</font id=code></pre id=code>

<b>NOTE</b> - Take the space out between <b>&</b> and <b>nbsp</b>

Regards

Owen.

Multiple Parameter UD4 / Access 2000 Database Search Tutorial:
www.tdsf.co.uk/tdsfdemo

Edited by - oeastwick on 10/19/2001 16:16:42
Replied 22 Oct 2001 13:29:53
22 Oct 2001 13:29:53 david bloomfield replied:
thanks

david

Reply to this topic