The URL string generated after this response.redirect is causing us a headache. It is replacing the characters with url percent encoding characters and adding in extra file directories.
Response.Redirect("TestingReport.aspx?id=" + Request.QueryString("id") + "&Test_Type_ID=" + Request.QueryString("Test_Type_ID") + "&TType=" + Request.QueryString("TType"))
https://subdomain.domain.com/User%20Portal/Testing/%2fUser%2520Portal%2fTesting%2fTestingReport.aspx%3fid%3d8444%26Test_Type_ID%3d2%26TType%3dCore%20Mandatory%202
Why is it changing ? and = to the percent codes? I don't understand why it is appending User Portal/Testing twice either.
Thanks
It's called URLEncoding. Checkout this online utility to decode the string you have.
In .NET, you can use System.Web.HttpUtility
to encode/decode.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With