asp.net : I wanted to know how to insert '\n' on the label
Posted
by veda
on Stack Overflow
See other posts from Stack Overflow
or by veda
Published on 2010-04-12T05:54:07Z
Indexed on
2010/04/12
6:03 UTC
Read the original article
Hit count: 261
I am just simply creating a web application. I wanted to insert a line break in a label
for example
label1.Text = "I AM HERE" + "\n" + "I AM NOW HERE";
I wanted to print it as
I AM HERE
I AM NOW HERE
But, it is not working... I don't know why...
I even tried
label1.Text = "I AM HERE" + '\n' + "I AM NOW HERE";
its not working.. What should I do....
© Stack Overflow or respective owner