Метод ASP UrlEncode
URLEncode метод, указанный правила кодирования строки URL, чтобы применить.
грамматика
Server.URLEncode(string)
参数 | 描述 |
---|---|
string | 必需。要编码的字符串。 |
примеров
<%
response.write(Server.URLEncode("http://www.w3cschool.cc"))
%>
输出:
http%3A%2F%2Fwww%2Ew3cschool%2Ecom
response.write(Server.URLEncode("http://www.w3cschool.cc"))
%>
输出:
http%3A%2F%2Fwww%2Ew3cschool%2Ecom
Ссылка на объект Полный сервер