Replace new line with
with C#

Replace new line with <br/> with C#

temp=TextBox1.Text;

temp = temp.Replace("\r\n","<br>");

You can use this method in Controllers as well.

Popular posts from this blog

npm refusing to install as a dependency of itself

How to call javascript functions from VB.NET and using WebBrowser Control