Previous PageNext Page

6.4.5 URLEncode Method

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.

Examples

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 © 2000 Chili!Soft

Previous PageTop Of PageNext Page