Back to Top
The nuts and bolts for
Creative web development

Binding ObjectDataSource to a Web Service in ASP.NET 2.0

In this tutorial we will look at a data-driven Web service which is capable of searching data from the sample Northwind SQL database. The service will be capable of searching by any column name and finding partial value matches against a text value entered by the user.

We’ll then see how we can use the data returned from the web service to bind to an ObjectDataSource control, and then in turn bind a GridView control to that ObjectDataSource, all without writing any code on the aspx web form.

The purpose of the tutorial is to see how you can leverage a web services layer in your application looking at the bigger picture. If you’re a systems architect and you plan to include web services in your design then you may want to consider the web services layer as the front end to your business components and instead of binding to your business components directly you can bind directly to your web services output values.

Note: Visual Studio 2005 or Visual Web Developer is required for this tutorial. Additionally, access to any SQL server version/instance which has the sample Northwind database is required. Both VB and C# code samples will be provided

Kevin Koch

Kevin KochKevin Koch is a senior software engineer with over 8 years experience designing and architecting primarily web based applications. Fresh out of college during the nineties he co-founded Task Solutions and developed several projects with the then popular classic ASP.

During the Dot Com boom Kevin left his position as president and joined a new venture to build an enterprise insurance claim system build upon J2EE technology. After the Dot Com crash Kevin schooled himself to become an expert with .NET technology and is currently freelancing his ASP.NET skills to build enterprise n-tier frameworks using advanced OO methodologies.

See All Postings From Kevin Koch >>

Share this Article