Geeks With Blogs
Mike Huguet I'm just talking out loud

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… http://blog.nerdbank.net/2009/05/uriescapedatapath-and.html

Technorati Tags: ,
Posted on Sunday, August 16, 2009 3:41 PM | Back to top


Comments on this post: Consider Using Uri.EscapeDataString Instead of HttpServerUtility.UrlEncode

# re: Consider Using Uri.EscapeDataString Instead of HttpServerUtility.UrlEncode
Requesting Gravatar...
Thanks for the Uri.EscapeDataString hint.
Saved my time for the solution of a problem
Left by ASP.NET on Aug 25, 2009 7:33 PM

Your comment:
 (will show your gravatar)


Copyright © Mike Huguet | Powered by: GeeksWithBlogs.net