.NET Tutorials, Forums, Interview Questions And Answers
Welcome :Guest
Sign In
Win Surprise Gifts!!!

Top 5 Contributors of the Month
Gaurav Pal

Home >> Forum >> ASP.Net >> Post New QuestionBookmark and Share Subscribe to Forum

The difference between asp:Label and asp:Literal control

Posted By: Jack Smith     Posted Date: September 05, 2012    Points:5   Category :ASP.Net
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

Author: laptop charles             
Posted Date: September 13, 2012     Points: 20   


Label, We can use for string formatting Also we can use some html tags, It does not support all the tags.

In Literal control is fully support HTML format.Literal is good for mobile site development, because we can use one literal dot net control to write all printable statement with HTML alignment.

Post Reply

You must Sign In To post reply
Find more Forum Questions on C#, ASP.Net, Vb.Net, SQL Server and more Here
Quick Links For Forum Categories:
ASP.NetWindows Application  .NET Framework  C#  VB.Net  ADO.Net  
Sql Server  SharePoint  OOPs  SilverlightIISJQuery

Hall of Fame    Twitter   Terms of Service    Privacy Policy    Contact Us    Archives   Tell A Friend