URLEncode and HTMLEncode

URLEncode applies URL encoding rules, including escape characters, to a specified string:
<%Response.Write(Server.URLEncode("http://www.psacake.com/web/"))%>

Returns:
http%3A%2F%2Fwww%2Epsacake%2Ecom%2Fweb%2F

HTMLEncode converts special characters to their HTML syntax for ASCII characters:
<%=Server.HTMLEncode("The Paragraph Tag: <P>")%>
Returns:
The Paragraph Tag: <P>

asp urlencode htmlencode html syntax ascii encoding rules


Back To Top
© 1998 - 2024 psacake.com
Version 7.21 | Advertise on this site