Home > Code > String Operations > Concatenating two strings using string.concat in C#

Concatenating two strings using string.concat in C#

by Shiva murugan   on May 11, 2011   Category: String Operations   |  Views: 1009    |  Points: 25   |  Bronze 


Usually we combine the string using "+" operator, see the below sample to join the two string using string.Concat

string firtName = "Smith ";
string SecName = "Jhon";
Response.Write(string.Concat(firtName, SecName));


Thanks
Siva.


Post Code  |  Code Snippet Home

User Responses


No response found, be the first to review this code snippet.

Submit feedback about this code snippet

Please sign in to post feedback

Latest Posts