O'Reilly logo

Programming Microsoft® SQL Server™ 2008 by Leonard Lobel, Andrew Brust, and Stephen Forte

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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:

  1. From the Data tab of the Toolbox, add an ObjectDataSource control to the form. Set its (ID) property to odsAW2008.

  2. 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.

  3. On the Choose A Business ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required