Skip to main content

Problem:

Label in a webform not displaying carriage return

Resolution:

Trying to display a carriage return in a webform label using X"0D0A" does not work.  The label control used in webforms (System.Web.UI.WebControls.Label) does not recognize carriage return.  In order to display text on separate lines in this type of label control  use the HTML tag <br> to separate the text.

EX:

set self::"label1"::"Text" to "FirstLine" & "<br>" & "SecondLine"

Old KB# 3797