13.07.2015 Views

ASP.NET 3.5: A Beginner's Guide - www.mustafaof.com

ASP.NET 3.5: A Beginner's Guide - www.mustafaof.com

ASP.NET 3.5: A Beginner's Guide - www.mustafaof.com

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

156<strong>ASP</strong>.<strong>NET</strong> <strong>3.5</strong>: A Beginner’s <strong>Guide</strong>If your output is plain vanilla text or numbers, either is fine. However, if your designneeds more properties, you’ll be better served by the Label web control. In the sampleapplication DisplayInfo.aspx (later in the chapter), you will see that they both display datathrough the Text property with assigned strings containing CSS encoding. In Figure 6-18you can see that the output from the two web controls is identical except for the stringvalues and color.Literal propertiesLabel propertiesFigure 6-17 Label web control has far more properties than the Literal web control.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!