Use the ampersand operator (&) to concatenate strings in VBScript. The + operator can also concatenate strings, but & is clearer because + is also the numeric addition operator.
Dim string1, string2, combined
string1="Welcome to Plus2net.com "
string2="ASP section"
combined=string1 + string2
Response.Write combined
The original + example is preserved above. For normal string concatenation, prefer &:
Response.Write "Welcome to Plus2net.com " & string2
Response.Write "Present time is = " & Now()
& avoids ambiguity between addition and concatenation.Author & Instructor at plus2net
I write and maintain practical tutorials on Python, PHP, SQL, JavaScript, HTML, jQuery, and web development at plus2net. The tutorials focus on clear explanations, working examples, and code that readers can test and adapt while learning.