Sunday, December 02, 2007

asp.net (DataAccess): Filling a DropDownList using a DataReader With the SqlDataSource

the SqlDataSource component, has a property called datasource mode :

image 

this property allows retreiving data using "DataSet" mode (the default), or "DataReader" mode.

so, for those who trust the SqlDataSource component, there's one way to bind grids, dropdownlists, formview and other controls. It is suitable for many situations, but not all.

Comments are welcome!

No comments: