当前位置: 首页 > 网络学院 > 服务端脚本教程 > ASP > ASP URLEncode 方法

ASP
ASP 介绍
ASP Install
ASP 语法
ASP 变量
ASP Procedures
ASP Forms
ASP Cookies
ASP Session
ASP Application
ASP #include
ASP Global.asa
ASP Send e-mail
ASP Response
ASP Request
ASP Application
ASP Session
ASP Server
ASP Error
ASP FileSystem
ASP TextStream

ASP URLEncode 方法


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-03-04   浏览: 412 ::
收藏到网摘: n/a

The URLEncode method applies URL encoding rules to a specified string.
ASP URLEncode方法的作用是将URL转换为指定的字符串代码

Syntax
语法

Server.URLEncode(string) 

Parameter
参数
Description
描述
string Required. The string to encode
必要参数。转换为字符串代码。

Example
举例

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

Output:

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

评论 (0) All

登陆 | 还没注册?