Click here to Skip to main content
15,921,941 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
i preparing a Windows form Utility,when i clicked on button it has to generate HTML document same as my Windows form, every thing is fine ,but the problem is when i am giving multi line text input to my text box ,it is giving as Continues Text,can any please help to get new line text in html using c#.

What I have tried:

sb.AppendFormat("{0}
","

"+textBox3.Text+"

");
and i also tried
sb.AppendFormat("{0}
",textBox3.Text+"
");
Posted
Updated 13-Jun-16 20:52pm

1 solution

In HTML, lines of text are broken by any block elements (such as div or p) or by <br/>.

Besides, the behavior of any element in the stream of text can be altered by changing its property display via the element style (CSS property): display — CSS.

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900