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

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>"
 
S

suzy

one way is to use single quotes (') instead of double quotes (") in your
href link.

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,535
Members
45,007
Latest member
obedient dusk

Latest Threads

Top