Answer: This method applies URL encoding rules, including escape characters. Where Spaces are converted to plus signs and non-alphanumeric characters are converted to their hexadecimal codes.
For an example,
Response.Write(Server.UrlEncode("http://testurl encode 123.com"));
Will result,
http%3a%2f%2ftesturl+encode+123.com
Asked In: Many Interviews |
Alert Moderator