Posted: 7/3/2010
Hi,
I am using literal control on my page but I am getting this error.
'System.Web.UI.WebControls.Literal' does not have a public property named 'ForeColor'.
Please help me.
There are no such Color properties for Literal control, like ForeColor, BackColor.
It's intended to display text and plain html. You can add color of your HTML inside literal like this
Literal1.Text = "<font color='red'> Hajan </font>";
Hi Kevin,
Please go with "Label" control instead of "Literal" then.