Multiline label in asp.net

后端 未结 5 1947
感动是毒
感动是毒 2021-01-17 14:09

I want to use a multiline label but as the control is browser dependent, even on setting the height, width and wrap properties of the label control I am unable to display mu

5条回答
  •  被撕碎了的回忆
    2021-01-17 14:17

    You can concatenate the string in asp:label with "
    "
    because it will result in html.

    For Example:

    label1.Text = strSample1 & "
    " & strSample2

    If you don't specific the width of label, it will auto expand the width to fit your string.

提交回复
热议问题