
CHAPTER 9 ■ DATA BINDING
373
Figure 9-6. A simple data-bound page with no code
Clearly, the great advantage of the data source controls is that they allow you to configure data
binding at design time, without writing tedious code. Even better, the results of your selections appear
(to a limited degree) in the Visual Studio designer so you can get a better idea of what your form will look
like.
Data Binding “Under the Hood”
As you learned earlier in this chapter, you can bind to a DataReader or a DataView. So, it’s worth asking,
which approach does the SqlDataSource control use? It’s actually in your control, based on whether you
set the DataSourceMode ...