Exemple #1
0
        protected void SaveEmployee_Click(object sender, EventArgs e)
        {
            ETBOSSService.ETBOSSServiceClient client = new ETBOSSService.ETBOSSServiceClient("BasicHttpBinding_IETBOSSService");



            ETBOSSService.Employee employee = new ETBOSSService.Employee();
            employee.Id   = Convert.ToInt32(txtID.Text);
            employee.Name = txtName.Text;
            employee.Dob  = Convert.ToDateTime(txtDob.Text);

            client.SaveEmployee(employee);

            Label1.Text = "Save employee done.";
        }