protected void btnSave_Click(object sender, EventArgs e) { EmployeeWCFService.EmployeeWCFServiceClient client = new EmployeeWCFService.EmployeeWCFServiceClient(); EmployeeWCFService.Employee employee = new EmployeeWCFService.Employee(); employee.ID = Convert.ToInt32(txtID.Text); employee.Name = txtName.Text; employee.Gender = txtGender.Text; employee.DateOfBirth = Convert.ToDateTime(txtDateOfBirth.Text); client.SaveEmployeeWCF(employee); lblMessage.Text = "Employee Saved"; }