asp.net codes
Thursday, December 23, 2010
Add text in new line
In many time Email body, Message Box, we need to display text, or some time we need to display text starting in new line, we use \r\n for this purpose. but environment class having property of newline for example
string newline = string.Concat("1",Environment.NewLine,"2",Environment.NewLine,"3",Environment.NewLine,"4",Environment.NewLine,"5");
// Response.Write(newline);
showNewLine.Text = newline;
Mahesh K. Shama
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment