ASP.NET Label control vs literal control (ASP.NET interview questions)
- By Shiv Prasad Koirala in ASP.NET
- May 2nd, 2014
- 6092
- 0
Label |
Literal |
Used to display formatted text on the browser. |
Used to display HTML code on the browser. |
Display's inside a span tag. |
Displays the text as it is. So if you have HTML it will get displayed as it is and not rendered. |
We can apply formatting and style. |
There is no formatting and style here whatever is the text gets displayed as it is. |
Can be accessed via javascript easily. |
Even if you provide ID value you can access via javascript. |
Preparing for .NET and ASP.NET interviews start from the below video. We are thankful to questpond.com to provide the below video.
Shiv Prasad Koirala
Visit us @ www.questpond.com or call us at 022-66752917... read more