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

wordpress - (T_ENDFOREACH) php error -

Export Excel workseet into txt file using vba - (text and numbers with formulas) -

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