Data Source Controls in ASP.net2
ASP.net 2 datasource controls can be used like any other web server controls. You can define and control the behaviour of the datasource control either declaratively in your HTML or programmatically.
There are five built in Data Source Controls in ASP.net. They are:
- SqlDataSource: Provides access to any data source that has an ADO.net data provider available. This provides access to ODBC, OLE, DB, SQL Server, Oracle, and SQL server CE providers.
- ObjectDataSource: Provides data access by allowing you to execute the methods of the business objects or other classes.
- XmlDataSource: Provides data access to XML documents that may be in the form of physical XML files or in-memory XML data.
- SitemapDataSource: Provides access to sitemap data for a web site. Sitemap information is stored in web.sitemap file, by default.
- AccessDataSource: Provides access to data stored in the access database.