|
The URLEncode method applies URL encoding rules, including escape characters, to a specified string.
Server.URLEncode( string )
string
Specifies the string to encode.
The following example encodes the paragraph tag:
<%= Server.URLEncode("The paragraph tag: <P>") %>
The script produces the following:
The+paragraph+tag%3A+%3CP%3E
Copyright 2002 Sun Microsystems, Inc. All rights reserved. Legal Notice.