URLEncode and HTMLEncode
URLEncode applies URL encoding rules, including escape characters, To a specified String:
Example: <%Response.Write(Server.URLEncode("http://www.programmersresource.com"))%>
Produces: "http%3A%2F%2Fwww%2Eprogrammersresource%2Ecom"
HTMLEncode converts special characters To their HTML syntax For ASCII characters:
Example: <%=Server.HTMLEncode("The Paragraph Tag: <P>")%>
Produces: "The Paragraph Tag: <P>"![]()