UrlEncode 方法将 URL 编码规则,包括转义字符,应用到指定的字符串
Server.UrlEncode(string )
下面的脚本代码:
<%=Server.UrlEncode("[test]")%>
运行结果为:
%5Btest%5D