hi,
i have a problem...i have a textBox with multiline enabled, where a user writes a description (some text)
if you press Enter, a new line appears and you may write on multilines, and when i save the description in my database, in place of "newline" i have two squares (i should copy-paste them here but they are interprated as a newline:P - ENTER)
When i load the description from the database into a textbox, the sqares have no effect because there should be a "<br>" or a html command for new line.
what should i do, to save direct in my database the <br> in place of that squares (witch apears when you press enter on a multiline textbox)?
i tryiedLabel1.Text.Replace(" ","<br>"); but i can't paste the squares at first arrgument, because it apears at a new line
i hope you understand...
please help me, thanks
How about:
Label1.Text.Replace(Environment.NewLine,"<br />");
Very good, thank you
0 comments:
Post a Comment