Sun Chili!Soft ASP Sun Chili!Soft
ASP Sun Microsystems

 

ASP Server Object URLEncode Method

The URLEncode method applies URL encoding rules, including escape characters, to a specified string.

Syntax: ASP Server Object URLEncode Method

Server.URLEncode( string )

Parameters: ASP Server Object URLEncode Method

string

Specifies the string to encode.

Examples: ASP Server Object URLEncode Method

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.