Jx_Man
Nearly a Senior Poster
3,328 posts since Nov 2007
Reputation Points: 1,372
Solved Threads: 444
Or you could just go the easy route
string s= "sample";
s = "daniweb " + s;
dickersonka
Veteran Poster
1,175 posts since Aug 2008
Reputation Points: 130
Solved Threads: 143
Correct nvmobius, I'll add if you are doing this with more than just a simple example like that, might want to try this.
StringBuilder sb = new StringBuilder();
sb.Append("sample");
sb.Insert(0, "daniweb ");
string s = sb.ToString();
dickersonka
Veteran Poster
1,175 posts since Aug 2008
Reputation Points: 130
Solved Threads: 143