Try this!
Uri.EscapeUriString(url);
Or
Uri.EscapeDataString(data)
No need to reference System.Web.
Edit: Please see another SO answer for more…
Try this!
Uri.EscapeUriString(url);
Or
Uri.EscapeDataString(data)
No need to reference System.Web.
Edit: Please see another SO answer for more…