Kriti

Kriti

  • NA
  • 60
  • 0

storing multiline text in a string

Jan 28 2010 7:32 AM

My expected output should be:

*********************************************

Ticket number 600300611 is preapproved by JOHN

*********************************************

Ticket Summary: $SUMMARY

My code is
body =
"*********************************************\r\n";
body +=
Environment.NewLine+ "Ticket number " + ticket_num + "is preapproved by" + ownername;
body +=
"*********************************************";
body+=
"Ticket Summary: "+summary;
My Problem is
I have used "\n" as well as newline but when i am printing the value of body..The result is not coming as expected..Newline is not begining from the 2nd line as shown in the top .Its all coming in two lines. How to get the expected output?
 


Answers (1)