RealDevTips > Development > .Net & C# > C#. Add new line symbol to string C#. Add new line symbol to string Published on August 5, 2015 by Aleksei Each time I forget how to add new line symbol to string. I decided to add to memories. Below how to add new line symbol to string in C#. string message = Label1.Text; message = message.Replace("<br />", System.Environment.NewLine); Leave a Reply Cancel replyYour email address will not be published. Required fields are marked *Comment * Name * Email * Website Save my name, email, and website in this browser for the next time I comment.
Leave a Reply