Forums

ASP

This topic is locked

If Statement Within DW MX 2004

Posted 13 Sep 2005 22:22:48
1
has voted
13 Sep 2005 22:22:48 Richard Mariner posted:
This statment checks if a db field has data in it. If data is not in the field it writes one message, if data is in the field it writes the data. This is in my current application.
If Trim(orsi1("rcv_internet")&"" = "" Then
Response.Write "<table border='0' width='100%'><tr><td class='content'><strong>Receivership Company Code</strong></td><td class='content'>" & orsi("rcvrdata.rcv_cmpnum" & " </td><td class='content'>Internet Link Unavailable</td></tr>"
Else
Response.Write "<tr><td class='content'><strong>Receivership Company Code</strong></td><td class='content'>" & orsi1("rcv_cmpnum" & " </td><td class='content'>" & orsi1("rcv_internet" & "</td></tr>"
End If

I'm moving everything to a DW interface. How do I write this within the dreamweave interface? Some type of server behavior? Some how modify one of the "show region" choices. Something like this.
<% If Trim(orsi1("rcv_internet")&"" = "" Then %>
<%=("No Data"%>
<% Else %>
<%= orsi("rcvrdata.rcv_cmpnum" %>
<%End IF%>

Can you tell me of an extension that I can use to do this?

Thanks!
Rich

Replies

Replied 14 Sep 2005 04:05:26
14 Sep 2005 04:05:26 Richard Mariner replied:
This will do it!!
<%Dim NoData
NoData = Recordset1.Fields.Item("article_date".Value
IF NoData <>"" THEN%>
<%=NoData%>
<%ELSE%>
<b>Empty</b>
<%End If%>

Reply to this topic