| Author |
If statements within DW MX 2004
|
|
| mar0364 2005-09-13, 7:32 pm |
| 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
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
| |
| webber Boy 2005-09-13, 11:17 pm |
| What's wrong with writing it out with your hand??
| |
| mar0364 2005-09-13, 11:17 pm |
| Nothing at all. I just don't want to do anything that would break any of the features that dreamweaver or extensions do? So I should not be conserned with that?
Thanks!
Rich
| |
| Lionstone 2005-09-14, 7:33 pm |
| Nope. Don't worry about that at all.
"mar0364" <webforumsuser@macromedia.com> wrote in message
news:dg7q5m$r36$1@forums.macromedia.com...
> Nothing at all. I just don't want to do anything that would break any of
> the features that dreamweaver or extensions do? So I should not be
> conserned with that?
>
> Thanks!
> Rich
|
|
|
|
| Copyright 2003 - 2008 forum4designers.com Software forum Computer Hardware reviews |