concept styling in category asp.net

appears as: styling
ASP.NET 4.0 in Practice

This is an excerpt from Manning's book ASP.NET 4.0 in Practice.

At this point in the chapter, you’re ready to implement your first Web Form and see how you can use ASP.NET to build rich pages. To that end, let’s start looking at some common scenarios in building web applications, such as handling PostBack, validating form input, and styling. These tasks are the most typical that you, as a developer, will perform in your day-to-day work. Mastering them will let you spend less time on repetitive tasks, as you leverage the ASP.NET infrastructure.

All web controls use a common approach to styling because they all derive from the WebControl class. You can modify some properties directly, using properties like Back-Color, ForeColor, BorderColor, or Font. When you need to apply styles to controls, it’s always better to rely on a CSS for formatting from a centralized point.