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("/spacer.gif")) %>
produces the output
http%3A%2F%2Fwww%2Emicrosoft%2Ecom
Applies To
Server Object
See Also
HTMLEncode |