c# - ASP Label Replace new line -


hello have label in project gets text database because label not support multline method need convert new lines
tried using tweetlabel.text.replace(environment.newline, "<br />") not work.
i'l add images showing problem. source code browser

render of it

database record

string.replace() returns new string. doesn't change string put method. therefore tweetlabel.text.replace() on own nothing. need change to:

tweetlabel.text = tweetlabel.text.replace(environment.newline, "<br/>"); 

Comments

Popular posts from this blog

ruby - Train neural network with sine function -

Using django-mptt to get only the categories that have items -

android - Error generating Gradle in Eclipse ADT -