Chapter 8. ASP.NET Web Controls for Displaying Text

<feature><title></title>

In this hour, we will cover

  • Displaying text using the Literal and Label Web controls

  • Using the Literal Web control

  • Using the Label Web control

  • Understanding the differences between the Literal and Label Web controls

  • Altering the appearance of the Label Web control

</feature>

We’ll be examining a variety of Web controls throughout this book. Web controls, like regular HTML markup, are placed in the ASP.NET page’s HTML portion. But unlike HTML elements, Web controls can be accessed programmatically from the page’s code. In this manner, Web controls serve as an intermediary between the source code and HTML portions of an ASP.NET page.

ASP.NET’s various Web controls can be divided ...

Get Sams Teach Yourself ASP.NET 3.5 in 24 Hours, Complete Starter Kit now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.