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.

Chapter 13: Data Binding 345}}readBind = sqlCmd.ExecuteReader();//Bind to repeaterDataList1.DataSource = readBind;DataList1.DataBind();readBind.Close();hookUp.Close();As you will see, the code for the DataList is much less than for the previous examples.You are limited to one column, but within that single column you can format the code anyway you want. As you can see from Figure 13-8, the records are clearly separated, andwhen printed on nametag paper, could easily be used for the desired purpose.Figure 13-8 DataList output for nametags

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

Saved successfully!

Ooh no, something went wrong!