Literal WebControl Rendering Modes

The Literal WebControl is a basic yet very useful control for displaying content with the minimum html produced.

The nature of this control is to render the text input directly to the html output response, this could allow a malicious user to input some client script, which would then run when the response content was rendered by the browser. For this reason the Literal WebControl has a set of rendering Mode’s.

Using this mode the content is not altered before being output
Using this mode the contents are encoded into a HTML encoded string
Using this mode if similar to PassThrough, but the content is cleaned based on the device and broswer it is responding to


No comments yet.

Add Yours

  • Author Avatar


Comment Arrow

About Author


Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning hands down.