Data Binding on the Web with ASP.NET
To see how easy it can be to bind an ASP.NET form to data, create a new ASP.NET Web Application project, and then create a typed DataSet named AW2008.xsd, add the AdventureWorks2008 Currency table to it, and build the project. (This is necessary in ASP.NET projects to make the DataSet and TableAdapter classes available to the designers.) Now open the project’s Default.aspx form in Design view and perform the following steps:
From the Data tab of the Toolbox, add an ObjectDataSource control to the form. Set its (ID) property to odsAW2008.
Click the control’s SmartTag (the arrow in the upper-right corner), and then select the Configure Data Source option from its ObjectDataSource Tasks menu.
On the Choose A Business ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access