Live Chat Icon For mobile
Live Chat Icon

What is an Literal Control.

Platform: ASP.NET| Category: Basic

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..

	<asp:Literal ID='Literal1' runat='server'></asp:Literal>

protected void Page_Load(object sender, EventArgs e)
	Literal1.Text = 'LiteralTextDemo';

Now the Resultant text will be in the format: LiteralTextDemo

Share with

Related FAQs

Couldn't find the FAQs you're looking for?

Please submit your question and answer.