I type the following URL into my web browser and press Enter.
http://localhost/website.aspx?paymentID=6++7d6CZRKY%3D&language=English
Now in my code, when I do HttpContext.Current.Request.QueryString ["paymentID"],
I get 6 7d6CZRKY =
but when I do HttpContext.Current.Request.QueryString.ToString (), I see the following:
PaymentID = 6 ++ 7d6CZRKY% 3D & language = English
I want to extract the actual payment identifier that the user entered in the URL of the web browser. I am not worried about whether the URL is encoded or not. Because I know that there is a strange thing happening here% 3D and + sign at the same time! But I need a + sign. Somehow it becomes decoded in space when I do HttpContext.Current.Request.QueryString ["paymentID"].
I just want to retrieve the actual payment id that the user dialed. What is the best way to do this?
Thanks.
source share