ASP URLEncode 方法

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
posted @ 2009-07-01 12:41  SuperJeff  阅读(307)  评论(0)    收藏  举报