08.01.2015 Views

Beginning Web Development, Silverlight, and ASP.NET AJAX

Beginning Web Development, Silverlight, and ASP.NET AJAX

Beginning Web Development, Silverlight, and ASP.NET AJAX

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.

102<br />

CHAPTER 4 ■ DATA BINDING WITH <strong>ASP</strong>.<strong>NET</strong><br />

The DataList template is automatically configured for the data fields that you’ve<br />

selected. It has a label containing the column name, <strong>and</strong> a placeholder for where the<br />

data should appear. You can change this easily to present the data in a different way. For<br />

example, if you don’t want a postal code label, <strong>and</strong> just have a comma between the<br />

address line <strong>and</strong> the postal code, you can visually edit this. Figure 4-32 shows one example<br />

of how the editor can be used to make the appearance of the data more visually<br />

pleasing.<br />

Figure 4-32. Editing the template for the DataList control<br />

View this page in your browser now to see the visual improvements (see Figure 4-33).<br />

Figure 4-33. Running the application with the revised DataList control

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

Saved successfully!

Ooh no, something went wrong!