Mar 29, 2006 #1 mplbm Programmer Joined Feb 9, 2006 Messages 24 Location 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
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
Mar 29, 2006 #2 DotNetGnat Programmer Joined Mar 10, 2005 Messages 5,548 Location IN Try this: Code: Response.Write "<td bgcolor=""eeeeee""><a href=""company.asp?company=<%=rs("companyKey")%>&orderby=name"">"&naym&"</a></td>" -DNG Upvote 0 Downvote
Try this: Code: Response.Write "<td bgcolor=""eeeeee""><a href=""company.asp?company=<%=rs("companyKey")%>&orderby=name"">"&naym&"</a></td>" -DNG
Mar 29, 2006 Thread starter #3 mplbm Programmer Joined Feb 9, 2006 Messages 24 Location GB 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> Upvote 0 Downvote
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>
Mar 29, 2006 #4 DotNetGnat Programmer Joined Mar 10, 2005 Messages 5,548 Location IN 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 Upvote 0 Downvote
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
Mar 29, 2006 #5 Sheco Programmer Joined Jan 3, 2005 Messages 5,457 Location US What are you trying to accomplish? Upvote 0 Downvote