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

<%Response.Write(Server.URLEncode("http://www.activeplus.com"))%>
 

Produces the output:

http%3A%2F%2Fwww%2Eactiveplus%2Ecom
 
Remarks

See RFC2396 for more details about how to encode a URL. 

Applies To

Server Object

See Also

HTMLEncode



©2001-2015 eMill. All trademarks property of their owners.