Server Object
All Methods
All Objects
All Properties
METHOD: Server.URLEncode
Server.
URLEncode
(String)
The
URLEncode
method takes a string and converts it into a URL-encoded format. For example, you can use
URLEncode
to ensure that hyperlinks in your Active Server Pages are in the correct format.
There is one mandatory argument.
String
The
String
argument is the string to be encoded.
Code:
<% Response.Write
Server.URLEncode
("http://www.issi.net") %>
Output:
http%3A%2F%2Fwww%2Eissi%2Enet
Copyright 1999-2001 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information