ASP URLEncode 属性
定義と使用方法
URLEncode メソッドは、指定された文字列にURLエンコード規則を適用します。
文法
Server.URLEncode(string)
パラメータ | 説明 |
---|---|
string | 必須。エンコードする文字列。 |
例
<% response.write(Server.URLEncode("http://www.codew3c.com")) %>
出力
http%3A%2F%2Fwww%2Ecodew3c%2Ecom%2Ecn
URLEncode メソッドは、指定された文字列にURLエンコード規則を適用します。
Server.URLEncode(string)
パラメータ | 説明 |
---|---|
string | 必須。エンコードする文字列。 |
<% response.write(Server.URLEncode("http://www.codew3c.com")) %>
出力
http%3A%2F%2Fwww%2Ecodew3c%2Ecom%2Ecn