C# - Get Newline in Textarea

This one is simple solution .....

string info = TextBox.Text;
info = info.Replace(System.Environment.NewLine, "<br />");

if not work in update panel use this function
public String TextareaFormatText(object obj)
{
      String str = Convert.ToString(obj);
      str = str.Replace(Environment.NewLine, "<br/>");
      str = str.Replace("\r\n", "<br/>");
      str = str.Replace("\n", "<br/>");
      return str;
 }