473,320 Members | 1,810 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

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 1587
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Igor2004 | last post by:
Ladies and Gentlemen, I would like to offer you the following string functions Transact-SQL GETWORDCOUNT() Counts the words in a string GETWORDNUM() Returns a specified word from a string...
14
by: Walter Dnes (delete the 'z' to get my real address | last post by:
I took a C course some time ago, but I'm only now beginning to use it, for a personal pet project. My current stumbling-block is finding an efficient way to find a match between the beginning of a...
1
by: David Tomlinson | last post by:
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...
3
by: vitaly.tomilov | last post by:
I'm using an ASP.NET form to display data from my database table, and I'm doing it in the following way: XmlDataDocument doc = new XmlDataDocument(mydataSet); XPathNavigator nav =...
2
by: Trint Smith | last post by:
Ok, My program has been formating .txt files for input into sql server and ran into a problem...the .txt is an export from an accounting package and is only supposed to contain comas (,) between...
7
by: peter.mcclymont | last post by:
Hi There, Can you please help me write an in-place function in C++ for reversing a string. What is an in-place function? So what is a non-in-place function in that case to reverse a C++...
27
by: user | last post by:
Have require file with several query stings in it. Depending on user input one of strings is selected. Everything going along smoothly until I wanted to also input a variable in string. If I put...
8
by: Brett | last post by:
I wrote an ASP.NET application that queries a SQL Server database (on a different box from the web server) and displays the result in a GridView. The datasource for the GridView is a SQLDataSource....
6
by: Alexnb | last post by:
Uhm, "string" and "non-string" are just that, words within the string. Here shall I dumb it down for you? string = "yes text1 yes text2 yes text3 no text4 yes text5+more Text yes text6 no...
19
by: est | last post by:
From python manual str( ) Return a string containing a nicely printable representation of an object. For strings, this returns the string itself. The difference with repr(object) is that...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.