Question : How to split the string using "\n" in  C#

I have a string like this

string str = "abc" + "\n" + "XYZ";

I  am printing the string using

Response.write(str);

But I want to display string like this on the browser
----------------------------------------------------------------
abc
XYZ

"\n" is not display characters in the newline.

Answer : How to split the string using "\n" in  C#

Random Solutions  
 
programming4us programming4us