String Concat Example

 In this article we will see how to use inbuilt String Concat method to join two different strings in code behind.

Step 1: Create two textboxes to receive input, one label to show concated result and Button.

 
 

Step 2: CodeBehind

protected void btnAddStrings_Click(object sender, EventArgs e)
    {
        lblResult.Text = string.Concat(txtFirstValue.Text, txtSecondValue.Text);
    }

Final Output:

String-Concat-Example-Asp-net-CodingFusion

 

 
We are nothing without our users ! You can help us offer even more high quality content. Please share our page !
Best quality Asp .Net Ajax Control Toolkit tutorials.

Give your valuable comments.

Name
Email
Comment
7 + 8 =
 
About Us | Terms of Use | Privacy Policy | Disclaimer | Contact Us Copyright © 2012-2017 CodingFusion