ObjectDataSource binds DataBound controls such as the GridView, DetailsView, and FormView controls to a component : ObjectDataSource « ADO.net Database « ASP.NET Tutorial
18. 36. 3. ObjectDataSource binds DataBound controls such as the GridView, DetailsView, and FormView controls to a component
using System; using System.Web.Configuration; using System.Collections.Generic; public class ProductCollection
{ public List<string> GetProducts()
{
List<string> products = new List<string>();
products.Add("A");
products.Add("B");
products.Add("C"); return products;
}