title: asp .net query string encoding and decoding
body: <p>I type the following url into my web browser and press enter.</p>
  
  <pre><code>http://localhost/website.aspx?paymentID=6++7d6CZRKY%3D&amp;language=English
  </code></pre>
  
  <p>Now in my code when I do HttpContext.Current.Request.QueryString["paymentID"], </p>
  
  <p>I get 6  7d6CZRKY=</p>
  
  <p>but when I do HttpContext.Current.Request.QueryString.ToString() I see the following:</p>
  
  <p>paymentID=6++7d6CZRKY%3D&amp;language=English</p>
  
  <p>The thing I want to extract the actual payment id that the user typed in the web browser URL. I am not worried as to whether the url is encoded or not. Because I know there is a weird thing going on here %3D and + sign at the same time ! But I do need the actual + sign. Somehow it gets decoded to space when I do HttpContext.Current.Request.QueryString["paymentID"].</p>
  
  <p>I just want to extract the actual payment ID that the user typed. What's the best way to do it?</p>
  
  <p>Thank you.</p>