Forums
This topic is locked
detail page
Posted 26 Aug 2002 15:17:39
1
has voted
26 Aug 2002 15:17:39 Carsten Hansen posted:
Hi,On my detail page I only want to display “description text” if the database field contains a value.
Ex.
My detail page displays:
Name: Tommy Peterson
Address: Green road 234
Phone: 555-444432
But if “address” don’t contain a value:
Name: Tommy Peterson
Address:
Phone: 555-444432
Instead I want:
Name: Tommy Peterson
Phone: 555-444432
Is there a way around this?
Replies
Replied 26 Aug 2002 18:07:25
26 Aug 2002 18:07:25 Erwin Hendriks replied:
in javascript:
if (your_data != null) {
Show the prompt
}
else {
do nothing!
}
- end of javascript
You don't need an else.
Succes,
Nakhba
if (your_data != null) {
Show the prompt
}
else {
do nothing!
}
- end of javascript
You don't need an else.
Succes,
Nakhba
Replied 26 Aug 2002 19:11:39
26 Aug 2002 19:11:39 Tuan Hoang replied:
Greetings moeslund:
you can also use the built in behaviors for your recordset. You can select the table row for each row and attach the behavior that only shows the region if the recordset.item is not empty.
you can also use the built in behaviors for your recordset. You can select the table row for each row and attach the behavior that only shows the region if the recordset.item is not empty.
Replied 26 Aug 2002 20:05:18
26 Aug 2002 20:05:18 David Behan replied:
In VBScript:
<% IF Address <> "" THEN %>Address: <%=rsRecordSet("Address"
%><% END IF %>
Where Address is the name of the field in your database.
Regards,
Dave
_________________________
WinXP : IIS 5.1 : StudioMX : ASP : VBScript
www.clicksdesign.com
<% IF Address <> "" THEN %>Address: <%=rsRecordSet("Address"

Where Address is the name of the field in your database.
Regards,
Dave
_________________________
WinXP : IIS 5.1 : StudioMX : ASP : VBScript
www.clicksdesign.com
Replied 28 Aug 2002 09:09:39
28 Aug 2002 09:09:39 Carsten Hansen replied:
Thanks for your help!
I ended up using the “Conditional Region server behavior” from this site - it works perfectly if I put at <BR> in the condition. <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>
I ended up using the “Conditional Region server behavior” from this site - it works perfectly if I put at <BR> in the condition. <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>