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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

176<strong>ASP</strong>.<strong>NET</strong> <strong>3.5</strong>: A Beginner’s <strong>Guide</strong>Figure 7-2 Styles seen in browserCompare Figures 7-1 and 7-2, and you will get an idea of the differences between whatyou see in the Visual Studio 2008 editor and what appears in the browser.At this point, you may be thinking that you can do all of your styling work by usingthe Properties window; for some applications such an assumption would be correct. Inlooking at the code for the Button, for example, all of the styling attributes are fairly clear,as the following code excerpt shows:However, close inspection shows that the attributes are not standard HTML or CSS ones.They look similar but they’re not quite the same. This can be problematic, especially indesigns that use both web controls and Web forms.Styling Web FormsNow that you’ve seen how easy it is to style web controls using the Properties window,this section examines doing the same with Web forms. As you will see, the styling optionsare severely limited using the Properties window. To get started, just use the same web site

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

Saved successfully!

Ooh no, something went wrong!