|
Some of the major changes that are there in Asp.Net 2.0 as compare to Asp.Net earlier version is the data-specific controls, which are divided into two groups: Data source controls and data-bound controls. Data source controls create the connection to stores of data (databases or other repositories). The data-bound controls take the information from the data source controls and create a rendering on the page.
A number of data source controls are available for many types of databases and even no relational data sources. Although additional controls are already in development by third parties, the following five data source controls ship with ASP.NET 2.0:
SqlDataSource control: To connect to the Microsoft SQL Server and other T-SQL databases that have a managed provider
AccessDataSource control: To connect to Microsoft Access files (extension of .MDB )
ObjectDataSource: To connect to middle-tier business objects
XmlDataSource: To connect XML content
SiteMapDataSource: To connect XML files in the format of the ASP.NET 2.0 site map (or site data through a custom provider)
Data-bound controls include many that are familiar from ASP.NET 1. x , as well as some that are completely new for ASP.NET 2.0:
GridView and DataGrid: For tabular data. GridView is new for version 2, whereas the legacy DataGrid remains largely unchanged for ASP.NET 1. x .
DetailsView and FormView: Display data for one record at a time.
DataList and Repeater: Display multiple data records in flexible layouts defined by the page programmer.
ListBox, DropDownList, BulletedList, CheckBoxList, and RadioButtonList: Display a group of options with the expectation that the user will make a selection.
AdRotator: Display an advertisement from a store of advertisements. This control was offered in ASP.NET version 1. x but has been updated to be compatible with data source controls.
TreeView and MenuView: Display hierarchical data .
|