Search DaTutorials:  
HOME
ASP Tutorials
Introduction
Reference
   Building ASP Pages
   Built-in Objects
Tutorials

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


     Knitting Patterns | Mortgages | Credit Cards | 3G UK | Loans
Home     Link To Us     Ad With Us     Contact Us     Tell A Friend     Affiliates     Blog     MsOfficeHelp