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

escape characters

Status
Not open for further replies.

mplbm

Programmer
Feb 9, 2006
24
GB
I need to put the following code within a <% %> block :

<td bgcolor=eeeeee><a href='company.asp?company=<%=rs("companyKey")%>&orderby=name'><%=naym%></a></td>

How do I escape the characters " etc?


Thanks,

Mike
 
Try this:
Code:
Response.Write "<td bgcolor=""eeeeee""><a href=""company.asp?company=<%=rs("companyKey")%>&orderby=name"">"&naym&"</a></td>"

-DNG
 
Sorry, the code snippet wasn't meant to include the <% %> within it. Here is the bit of code I am working with :

response.write "<tr>" &_
"<td bgcolor=eeeeee><a href=""company.asp?company=rs("companyKey")" & "orderby=name"">"&naym&"</a></td>
 
oops...ya...i missed that..try this

Code:
Response.Write "<td bgcolor=""eeeeee""><a href=""company.asp?company=rs("companyKey")&orderby=name"">"&naym&"</a></td>"

-DNG
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top