Home » FAQ » ASP.NET » Miscellaneous » How to specify a line break in a Label’s Text?
Use the ‘<br>’ tag to specify line breaks. For example:
VB.NET
Label1.Text = '<sometag1>' + '<br>' + '<sometag1>'
C#
Label1.Text = '<sometag1>' + '<br>' + '<sometag1>';
Platform BlazorASP.NETWinFormsWPF.NET MAUI
Question *
Answer (Optional)
Email (Optional)
Email address is only for further clarification on your FAQ request. It will not be used for any other purpose.
Please leave this field empty.
Share with