Question: i have multi line textbox in my asp.net page. when user enter some data in that i store the data in database table. now when i display the data back to the page the ENTER which user has pressed while entering the data get lost and all the data is displayed in same line. so i want to save the ENTERs pressed while entering data and display the data in the form it was being entered.plz help

Answer: 
HTML [collapses whitespace](http://www-sul.stanford.edu/tools/tutorials/html2.0/whitespace.html): the newline characters are indeed stored in the database, but are rendered as space characters on the page.

You can replace the newline characters with `<br />` elements when rendering:

```
yourLabel.Text = Server.HtmlEncode(yourData).Replace("\n", "<br />");

```

There's no easy solution to restore tabulation characters, though, apart from rendering your data in a multiline read-only `TextBox` control.
Replace the enter character char(13) with html break line <br/> when displaying the data.

```
lblDisplay.Text = GetTextFromDb().Replace(char(13),"<br/>");

```