示例#1
0
 protected void Insert(object sender, EventArgs e)
 {
     ServiceReference1.ServiceClient client = new ServiceReference1.ServiceClient();
     client.Insert(txtName.Text.Trim(), txtCountry.Text.Trim());
     this.BindGrid();
 }
示例#2
0
 private void BindGrid()
 {
     ServiceReference1.ServiceClient client = new ServiceReference1.ServiceClient();
     GridView1.DataSource = client.Get().CustomersTable;
     GridView1.DataBind();
 }