Saving line break in multiline textbox ASP.NET 1.1

  • Home
  • Blog
  • Saving line break in multiline textbox ASP.NET 1.1

Many time it happens with the multi line text box that it does not save the line break and another things in the text box. I have found a great way to do this..You can replace the line break with the string replace function for example your text box nameif you want to assign text box to a some value…

txtAddress.Text=objAddress.CompanyAddress.Replace(“put here br”,”\r\n”);

if you want to assign text box value to another object

txtAddress.Text=objAddress.CompanyAddress.Replace(“put here br”,”\r\n”);

happy programming…