.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month

Home >> Code Snippets >> Regular Expressions >> Post New Resource Bookmark and Share   

 Subscribe to Code Snippets

Concatenation of input variable with Hardocoded value and show in Message box

Posted By:Karthikeyan Anbarasan       Posted Date: January 02, 2011    Points: 15    Category: Regular Expressions    URL: http://www.dotnetspark.com  

Below code shows how to concatenate the input text box variable with an hard coded value and show in a message box on button click

 private void button1_Click(object sender, EventArgs e)
            string strInputText = "Name";
            strInputText = "Hi" + strInputText


Further Readings:


No response found. Be the first to respond this post

Post Comment

You must Sign In To post reply
Find More code samples in C#, ASP.Net, Vb.Net and more Here

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend