Consider Using Uri.EscapeDataString Instead of HttpServerUtility.UrlEncode

We found that in some cases you need to consider using Uri.EscapeDataString.  In our case we are encrypting the querystring and found that UrlDecode is converting a plus (+) to space.  This was causing us errors during decryption.  Using Uri’s Escape and UnescapeDataString makes sense for us when constructing a custom querystring in the URL.

Here are some details from another blogger…

Technorati Tags:,

This article is part of the GWB Archives. Original Author: Mike Huguet

New on Geeks with Blogs