asp:Literal: Mode Encode (C#)
<%@ Page Language="C#" %>
<html>
<head>
<title>Show Literal Mode</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:Literal
id="ltlFirst"
Mode="PassThrough"
Text="<hr />"
Runat="server" />
<asp:Literal
id="ltlSecond"
Mode="Encode"
Text="<hr />"
Runat="server" />
<asp:Literal
id="ltlThird"
Mode="Transform"
Text="<hr />"
Runat="server" />
</div>
</form>
</body>
</html>
Related examples in the same category