URLEncode

The URLEncode method applies URL encoding rules, including escape characters, to a specified string.

Syntax

Server.URLEncode( string )

Parameters

string
Specifies the string to encode.

Example

The following script:

<%= Server.URLEncode("The paragraph tag: <P>") %>
 

produces the output:

The+paragraph+tag%3A+%3CP%3E
 

Applies To

Server Object

See Also

HTMLEncode