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