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

ASP
ASP Drive
ASP File
ASP Folder
ASP Dictionary
ASP ADO
ASP AdRotator
ASP BrowserCap
ASP Content Linking
ASP Content Rotator
ASP Quick Ref
ASP 摘要
ASP 实例

ASP URLEncode 方法


出处:互联网   整理: 软晨网(RuanChen.com)   发布: 2009-03-04   浏览: 413 ::
收藏到网摘: 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

登陆 | 还没注册?