ASP.Net Text with LineBreak from Multi-Line-TextBox to save in a database

前端 未结 3 1556
别那么骄傲
别那么骄傲 2020-12-01 21:24

I have PrivateMessage-System in my new Community-Page.

I have a Multiline-Textbox for the Text of a private message. I save this text in a string, this string in a n

3条回答
  •  独厮守ぢ
    2020-12-01 22:14

    this also works:

    lbl_PostContent.Text = lbl_PostContent.Text.Replace(vbCrLf, "
    ")

提交回复
热议问题