jasonsalas
IS-IT--Management
Hi all,
I'm working on a minor project and trying to have a script write an HTML non-breaking space (" "
if it reads across a column in a single DB record that doesn't have any data in it (NULL). The script is writing several column vertically on the page, separating each by a horizontal rule.
Here's the code I've been trying to use, but unsuccessfully so:
<%
If objRS("Brief1"
<> "" Then
Response.Write("<DIV>" & objRS("Name"
& "<hr></DIV>"![Wink ;) ;)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
Else
Response.Write(" "![Wink ;) ;)](data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7)
End If
%>
The problem I'm getting is that regardless if the DB column has data in it or not, the script writes out the horizontal rule, making the page ugly. I've used this type of If...Then construct calling form data before, but not with a DB.
Any ideas? Thanks for your help!
JS
I'm working on a minor project and trying to have a script write an HTML non-breaking space (" "
Here's the code I've been trying to use, but unsuccessfully so:
<%
If objRS("Brief1"
Response.Write("<DIV>" & objRS("Name"
Else
Response.Write(" "
End If
%>
The problem I'm getting is that regardless if the DB column has data in it or not, the script writes out the horizontal rule, making the page ugly. I've used this type of If...Then construct calling form data before, but not with a DB.
Any ideas? Thanks for your help!
JS