ASP URLEncode Attribute

Server Object Reference Manual

Definition and Usage

The URLEncode method applies URL encoding rules to the specified string.

Syntax

Server.URLEncode(string)
Parameter Description
string Required. The string to be encoded.

Example

<%
response.write(Server.URLEncode("http://www.codew3c.com"))
%>

Output

http%3A%2F%2Fwww%2Ecodew3c%2Ecom%2Ecn

Server Object Reference Manual