Results 1 to 20 of 20

Thread: A small URL Bamboozlement [Resolved]

Threaded View

  1. #1

    Thread Starter
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    A small URL Bamboozlement [Resolved]

    I've got a page called SendEmail.aspx. In this page, I am looking for a Request.Querystring value which I put into a multiline asp:textbox.

    PHP Code:

                        
    if(!(Request.QueryString["body"] ==null))
                        {
                    
                            
    strBody Request.QueryString["body"].ToString();
                            
    strBody strBody.Replace("\n",System.Environment.NewLine);
                        } 
    As you can see, the entire body will be passed in the URL, and I am trying to replace the \n with newlines, so that the textbox has those linebreaks in it.

    This is how the call is done:

    Code:
    javascript:popBox('SendEmail.aspx?body=Hello how are \n you!?');
    The problem is, the "\n" is not being replace with a newline. Instead, I get a space.

    What can I do to get the NewLines in there for the textbox?
    Last edited by mendhak; Feb 1st, 2005 at 10:35 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width