dotNET

URL Encoding


Encodes things like spaces and ampersands when building parameterized URLs:

HttpUtility.UrlEncode("something&stuff");

HttpUtility.UrlDecode ...

Example

Response.Redirect("process_request.aspx?startdate=" + startdate + "&stuff=" +
HttpUtility.UrlEncode(stuff));


Comments