ASP URLEncodeMethod
Complete Server Object Reference Manual
The URLEncode method applies URL encoding rules to a specified string.
Syntax
Server.URLEncode(string)
| Parameters | Description |
|---|---|
| string | Required. The string to be encoded. |
Example
<%
response.write(Server.URLEncode("https://www.example.com"))
%>
Output:
https%3A%2F%2Fwww%2Eexample%2Ecom
response.write(Server.URLEncode("https://www.example.com"))
%>
Output:
https%3A%2F%2Fwww%2Eexample%2Ecom
Complete Server Object Reference Manual Other Extensions