ASP.NET Label control vs literal control (ASP.NET interview questions)
- By Shiv Prasad Koirala in ASP.NET
- May 2nd, 2014
- 6173
- 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

- By Shiv Prasad Koirala
- Jun 21st, 2013
- 163828
- 0
.NET interview questions 6th edition (Sixth edition) - By Shivprasad Koirala

- By Shiv Prasad Koirala
- Dec 8th, 2016
- 89169
- 0
Exception Handling in C# using example step by step

- By Shiv Prasad Koirala
- Sep 7th, 2013
- 72009
- 0