replace comma with <br> c# code example Example: c# string replace comma with newline string res = res.Replace(',', '\n');