Chapter 9: Displaying Data


Overview

In the previous chapter, we showed you how easy it is to work with a database using the Data Explorer window, and other features of Web Matrix. We created a database, added a table, filled it with data, and then displayed this data on a page. We looked at how we can display data by simply dragging a table from the Data Explorer window onto a page, and by creating and using a stored procedure.

In this chapter, we need to look in a bit more depth at what is happening in these examples of displaying data. We didn't discuss the way in which they worked, or how you can build your own custom pages that take advantage of the same techniques. These are the tasks we'll be completing in this chapter.

In this chapter, you'll learn:

  • How the visual drag-and-drop controls we use in Web Matrix actually connect to a database table to extract and display data

  • How we can modify the appearance and content of the MxDataGrid control

  • How to populate web controls with data using server-side data binding

  • What list control templates are, and an example of how we can use them

We start with a look at the way Web Matrix displays pages with data on them.




Beginning Dynamic Websites with ASP. NET Web Matrix
Beginning Dynamic Websites: with ASP.NET Web Matrix (Programmer to Programmer)
ISBN: 0764543741
EAN: 2147483647
Year: 2003
Pages: 141

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net