public List<Customer> Getall() { return cutomerList; } public static List<Customer> cutomerList = new List<Customer>() { new Customer {CustomerID = 1, CustomerName="Sujeet", Address="Pune", EmailId="test@yahoo.com" }, new Customer {CustomerID = 2, CustomerName="Rahul", Address="Pune", EmailId="test@yahoo.com" }, new Customer {CustomerID = 3, CustomerName="Mayur", Address="Pune", EmailId="test@yahoo.com"} };
protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { proxy = new WCFExample.Service1(); GridView1.DataSource = proxy.Getall(); GridView1.DataBind(); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)