Please note, this is a STATIC archive of website www.w3schools.com from 05 May 2020, cach3.com does not collect or store any user information, there is no "phishing" involved.
THE WORLD'S LARGEST WEB DEVELOPER SITE

ASP URLEncode Method


❮ Complete Server Object Reference

The URLEncode method applies URL encoding rules to a specified string.

Syntax

Server.URLEncode(string)

Parameter Description
string Required. The string to encode

Example

<%
response.write(Server.URLEncode("https://www.w3schools.com"))
%>

Output:

https%3A%2F%2Fwww%2Ew3schools%2Ecom

❮ Complete Server Object Reference