How do you place a string within a string? Please help

  • Thread starter Thread starter David Tomlinson
  • Start date Start date
D

David Tomlinson

I'm creating a HTML email using VB Script in asp.net. I am an amatuer
programmer and require help with placing a string within a string:

I would like my mail to generate a link to a specified page. The <a
href> tag requires quotation marks and asp.net doesnt like this
because it thinks that the variable string is coming to a close. I
have tried using single quotations and also pipes but have had no joy.
If you can help I would be most grateful.

Dim strHTMLBody As String

strHTMLBody =
"<HTML><HEAD><TITLE>Review</TITLE></HEAD><BODY>You have been asked to
comment on a new document. Please follow the link below and click on
the COMMENT button to register your review<br><br><br><br> <a
href="www.evertonfc.com">Dave</A><br>Any questions or problems, email
(e-mail address removed)</BODY><HTML>"
 
one way is to use single quotes (') instead of double quotes (") in your
href link.

eg: <a href='page.html'>link</a>
 
Back
Top