What is the difference between asp:Label and asp:Literal control?

 Posted by Raja on 5/23/2008 | Category: ASP.NET Interview questions | Views: 25051

asp:Label control
asp:Label control is used to write text on the page with different formatting options like bold, italic, underlined etc.
For more on asp:Label see http://dotnetfunda.com/tutorials/controls/label.aspx

asp:Literal control
Literal control is used to write simple text on the page, you can use server side formatting options like bold, italic, underlined.
For more on asp:Literal see http://dotnetfunda.com/tutorials/controls/literal.aspx

Asked In: Many Interviews | Alert Moderator 

Comments or Responses

Posted by: Nareyugam on: 4/23/2012 | Points: 10
Label: is used to write some text over the page where
Literalcontrol is also used to write text with server side formatting options

Login to post response