Friday, October 4, 2013

Wrapping Text Line in a label control

Display text in multi-line in web pages.
Wrap = true;
rows = 15 (change this number as per your need.)
ReadOnly = true
TextMode = multiline (you need this to have multiple lines)
BorderStyle = None
BorderWidth = 0
Also when setting the text property, you should replace all the
tags to new Line characters.
TextBox1.Text.Replace(Environment.NewLine, “
”);

No comments:

Post a Comment