I don't know why you are having a problem, I just did some testing (in vb.net) and did not have any issues, maybe your circumstance is different somehow.
webform1 (page_load)
VB Code:
Response.Redirect("webform2.aspx?body=Hello how are \n you!?")
webform2 (page_load)
VB Code:
Dim str As String = Request.QueryString("body").ToString str = str.Replace("\n", System.Environment.NewLine) TextBox1.TextMode = TextBoxMode.MultiLine TextBox1.Text = str
Image of the output is attached







Reply With Quote