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.

342<strong>ASP</strong>.<strong>NET</strong> <strong>3.5</strong>: A Beginner’s <strong>Guide</strong>Figure 13-7 Alternating shading in rows helps differentiate records.}}//Bind to repeaterRepeater1.DataSource = readBind;Repeater1.DataBind();readBind.Close();hookUp.Close();Figure 13-7 shows the alternating rows and the very different header. You do not wantthe alternating differences as sharply differentiated as the header. The header appears onlyonce, so it does not generate a jarring contrast that repeats itself within the rows of data.Experiment with alternating row shading by changing the value of the alternating rowcolor. The base color does not need to be white, so you might also want to experimentwith different colors for each tag as well.DataListThe DataList control is a lot like the Repeater control insofar as binding data is concerned.However, using a DataList control is when you need a single-column list. For example,suppose you’re setting up a networking party with donors to a political campaign. Each donor

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

Saved successfully!

Ooh no, something went wrong!