<%@ Page Language="C#" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<script runat="server">
</script>
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
<title>Literal example: how to use Mode Encode, PassThrough, Transform</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:Literal
ID="Literal1"
runat="server"
Mode="Encode"
Text="<b><u>Literal web server control: Mode Encode</u></b>"
>
</asp:Literal>
<br />
<asp:Literal
ID="Literal2"
runat="server"
Mode="PassThrough"
Text="<b><u>Literal web server control: Mode PassThrough</u></b>"
>
</asp:Literal>
<br />
<asp:Literal
ID="Literal3"
runat="server"
Mode="Transform"
Text="<b><u>Literal web server control: Mode Transform</u></b>"
>
</asp:Literal>
<br />
</div>
</form>
</body>
</html>
No comments:
Post a Comment