ASP URLEncode Method
❮ อ้างอิงวัตถุเซิร์ฟเวอร์ที่สมบูรณ์
วิธีการ URLEncode ใช้กฎการเข้ารหัส URL กับสตริงที่ระบุ
ไวยากรณ์
Server.URLEncode(string)
Parameter | Description |
---|---|
string | Required. The string to encode |
ตัวอย่าง
<%
response.write(Server.URLEncode("https://www.w3schools.com"))
%>
Output:
https%3A%2F%2Fwww%2Ew3schools%2Ecom
❮ อ้างอิงวัตถุเซิร์ฟเวอร์ที่สมบูรณ์