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 biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

String Concatonate With Speach Marks 1

Status
Not open for further replies.

RebelFox

Programmer
Jun 16, 2002
62
GB
I have a simple data base listing employee names and internal phone numbers. I have output the list of names and
phone numbers to a table on an intranet page using ASP.

Each record has a field to indicate if the phone number has Voice Mail capability. I would like to highlight these phone numbers by setting the border around the phone number
cell with a different colour. In html I would use:-

<bordercolor=&quot;#000000&quot;>.

In ASP within my html table definition I have coded:-

<%
If objRecordSet.strVoiceMail = &quot;Y&quot; Then
Response.Write &quot;<bordercolor=&quot;#000000&quot;>&quot;
End If
%>

My ASP code fails because the &quot; characters are all wrong.
How do I tell ASP when a &quot; character exists within a pair of &quot; characters?

 
This works too:

<%
If objRecordSet.strVoiceMail = &quot;Y&quot; Then
Response.Write &quot;<bordercolor='#000000'>&quot;
End If
%>


Kris
- In case of doubt, make it sound convincing.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top