Literal Control Mode Properties in C#

PassThrough
The Text content is rendered as is. This includes HTML markup and script. These items are output to the page and processed by the browser as HTML and script, respectively.

Encode
The Text content is HTML encoded; that is, any HTML markup or script is actually treated like text and not HTML or script.

Transform
The Text content is converted to match the markup language of the requesting browser, such as HTML, Extensible Hypertext Markup Language (XHTML), Wireless Markup Language (WML), or Compact Hypertext Markup Language (cHTML). If the markup language is HTML or XHTML, the content is passed through to the browser. For other markup languages, invalid tags are removed.

Enjoyed this post? Share it!

 

Leave a comment

Your email address will not be published.