Quick References
      ADO
      ASP
      CSS2
      HTML
      JavaScript
      Jet SQL
      VBScript
      WML
      WMLScript
      WSH
      XHTML
      XML DOM
      XSLT

Features
      Knowledge Base
      Tutorials

Partners
     ZVON.ORG
     XML
     Planet Source Code
     VisualBuilder
     Web Design
     Your HTML Source
     XML/XSLT Forums
     ASPAlliance
     Scripts
     
     Programmers Heaven
     Tek-Tips Forums
     Developer Fusion
     Code Project











METHOD:  Server.HTMLEncode

Server. HTMLEncode (String)

The HTMLEncode method applies HTML encoding syntax to a specified string of ASCII characters. For example, this allows you to display a HTML tag on a web page and not have it treated as an actual tag.

There is one mandatory argument.

String

The String argument is the string to be encoded.

Code:
<% Response.Write Server.HTMLEncode("The tag for a table is: <Table>") %>

Output:
The tag for a table is: &lt;Table&gt;

Browser Output:
The tag for a table is: <Table>
 


Copyright 1999-2005 by Infinite Software Solutions, Inc. All rights reserved.
Trademark Information