Forum Moderators: open

Message Too Old, No Replies

Hide region with ASP

Hiding rows when they contain no data

         

Wrinkle

10:38 am on May 8, 2001 (gmt 0)



Busy trying to get to grips with ASP and can get data from Access DB. However, have built table in the ASP page to hold data but wish to hide rows where there is no data? Anyone point me to a snippet of code that does this.

TIA

Wrinkle

1:32 pm on May 8, 2001 (gmt 0)



No worries, finally found the answer. For those interested:
put before <tr> table tag
<% if Not isnull(recordsetname.Fields.Item("fieldname")) AND recordsetname.Fields.Item("fieldname")<> "" Then %>

and

<% End if %> after </tr> table tag

sugarkane

3:08 pm on May 8, 2001 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi Wrinkle, glad you got something to work!