Tag: ASP.Net
-
Decrypt QueryString – Space + Issue = Uri.EscapeDataString
While working with encrypted querystrings in ASP.NET I noticed people doing this: The “strScramble.Replace(” “, “+”)” is a scary way to get around the request.querystring automatically changing the “+” into a space. A better way is to use System.Uri.EscapeDataString before adding the querystring value. Then HttpUtility.UrlDecode works as expected returning the “+”. According to this blog on MSDN (http://blogs.msdn.com/yangxind/default.aspx), […]