Multiline in Label ASP.NET
You want to display a text label with multiple lines. Please see the example below:
Label1.Text = "The <br /> text <br /> has <br /> multiple <br /> lines";
If you want to display the text in the Multiline TextBox Control:
Label1.Text = TextBox1.Text.Replace(Environment.NewLine, "<br />");
DOWNLOAD [3 Kb .zip]
Tags: asp net label multiline, asp label multiline, asp net multiline label, multiline label asp net, multiline label in asp net, label multiline asp net, asp:label multiline, asp net lable multiline, multi line label asp net, asp net label multiline text
Related posts:
- Export GridView to Excel in ASP.NET
- Open a PopUp Window in ASP.NET
[...] Label Value using Javascript Change Label Color using Javascript Set Label Color (ForeColor) Multiline in Label ASP.NET Get TextBox value using JavaScript Set TextBox value using JavaScript Select all text in TextBox [...]