HttpUtility.UrlEncode code example Example: webutility.urlencode space Uri.EscapeDataString("your not escaped url")