469,625 Members | 1,446 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,625 developers. It's quick & easy.

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

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
ad***********@eDMS.com</BODY><HTML>"
Nov 18 '05 #1
3 1451
one way is to use single quotes (') instead of double quotes (") in your
href link.

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

"David Tomlinson" <da**********@hotmail.com> wrote in message
news:a5*************************@posting.google.co m...
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
ad***********@eDMS.com</BODY><HTML>"

Nov 18 '05 #2
Thank you, that works fine. It also worked using no quotations as well.
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 18 '05 #3
yes , but it wont work without quotes if you have spaces in your attribute
value.
"David Tomlinson" <da**********@hotmail.com> wrote in message
news:ed**************@TK2MSFTNGP12.phx.gbl...
Thank you, that works fine. It also worked using no quotations as well.
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 18 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Igor2004 | last post: by
14 posts views Thread by Walter Dnes (delete the 'z' to get my real address | last post: by
1 post views Thread by David Tomlinson | last post: by
2 posts views Thread by Trint Smith | last post: by
7 posts views Thread by peter.mcclymont | last post: by
27 posts views Thread by user | last post: by
6 posts views Thread by Alexnb | last post: by
reply views Thread by gheharukoh7 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.