HighDots Forums  

master/detail page links

Macromedia Dreamweaver Macromedia Dreamweaver Discussions (macromedia.dreamweaver)


Discuss master/detail page links in the Macromedia Dreamweaver forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
fireman sam webforumsuser@macromedia.com
 
Posts: n/a

Default master/detail page links - 07-17-2003 , 04:45 AM






Help please, I've created a master/detail page no problem but on the master page I only want the link to the detail page to be active if there is data in a particular field in that record.



Reply With Quote
  #2  
Old   
Les Matthews
 
Posts: n/a

Default Re: master/detail page links - 07-17-2003 , 09:30 AM






Wrap an if statement around the link to the detail page. Something like
below (ASP code, you will have to modify for your selected server model):

<% If (rsMyRecordset.Fields.Item("myField").Value) <> "" Then %>
<A HREF="DetailPage.asp?<%= MM_keepNone & MM_joinChar(MM_keepNone) & "ID=" &
rsMyRecordset.Fields.Item("myField").Value
%>"><%=(rsMyRecordset.Fields.Item("myField").Value )%></A>
<% End If %>


"fireman sam" <webforumsuser (AT) macromedia (DOT) com> wrote

Quote:
Help please, I've created a master/detail page no problem but on the
master page I only want the link to the detail page to be active if there is
data in a particular field in that record.
Quote:




Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.