URLEncode applies URL encoding rules, including escape characters, to a specified string:
<%Response.Write(Server.URLEncode("http://www.psacake.com/web/"))%>
HTMLEncode converts special characters to their HTML syntax for ASCII characters:
<%=Server.HTMLEncode("The Paragraph Tag: <P>")%>
Returns:
The Paragraph Tag: <P>