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. 
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
Post a Comment