The Literal control is similar to the Label control, except the Literal control does not enable you to apply a style to the displayed text..
<div>
<asp:Literal ID='Literal1' runat='server'></asp:Literal>
</div>
protected void Page_Load(object sender, EventArgs e)
{
Literal1.Text = 'LiteralTextDemo';
}
Now the Resultant text will be in the format: LiteralTextDemo
Share with