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 - 2014 psacake.com | My3C's

Version 7.0a | Advertise on this site