Author: bthumber | Posted on: 7/9/2010 11:29:17 AM | Views : 445

I have a message on one and I'm sending that message to another using a Session. The problem is the message come out on one line, please code
StringBuilder sb = new StringBuilder(); sb.Append("--- Original Message ---"); sb.AppendLine(); sb.Append(TxtBody.Text).AppendLine(); string innerString = sb.ToString(); Session["Message"] = innerString; Response.Redirect("myPage.aspx);
 
Output:  --- Original Message ---message for the user.
Output should be:
--- Original Message ---
message from the user.
How do get the info on two lines?
...

Go to the complete details ...