Open In App

ASP Server.URLEncode Method

The ASP Server.URLEncode method is used to apply URL encoding rules to convert to a specified string. Below are given the URLEncode converts characters as follows: 

Syntax: 

Server.URLEncode(string)

Parameter Values: It contains a string value that specifies the string to be encoded. 

Example: 




<%
response.write(Server.URLEncode("https://www.geeksforgeeks.org"))
%>

Output:  

https%3A%2F%2Fwww%2Egeeksforgeeks%2Eorg
Article Tags :