Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

show dynamic text string "true" as "yes" or "no" 1

Status
Not open for further replies.

optjco

IS-IT--Management
Apr 13, 2004
185
GB
I am putting some dynamic text onto a web page where the value is displayed as either "true" or "false. Is it possible to show this as either "yes" or "no"

I tried an if else statement but got an error telling me that the data could not be updated ??

Regards

Olly
 
veep,
here is the line of code relating to the dynamic text("clean").value, as I said it shows either "true" or "false" but i would like to display either "yes" or "no".

Code:
<td class = "tlcells"><font size="1" face="Verdana, Arial, Helvetica, sans-serif">CLEAN/TRIM 
        :&nbsp;&nbsp;<font color="#0000FF" size="2"><strong><%=(RSprint.Fields.Item("Clean").Value)%></strong></font></font></td>

Regards

Olly
 
Dim newclean

if RSprint.Fields.Item("Clean").Value="True" Then
newclean="yes"
else
newclean="no"
end if

then try this:

<td class = "tlcells"><font size="1" face="Verdana, Arial, Helvetica, sans-serif">CLEAN/TRIM
:&nbsp;&nbsp;<font color="#0000FF" size="2"><strong><%=newclean%></strong></font></font></td>

-L

 
Lothario,
worked like a charm thank you

:)[2thumbsup]:)

Regards

Olly
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top