Example #1
0
        static void Main(string[] args)
        {
            EmpServiceClient sc = new EmpServiceClient();

            //sc.InsertEmp("Sandeep", 10000);
            sc.UpdateEmp(new DevelopmentEmployee()
            {
                EmpId = 1, EmpName = "E1", EmpSalary = 10000, DateOfBirth = new DateTime(2017, 4, 2), ProgrammingLanguage = "DotNet"
            });
            sc.Close();
        }
Example #2
0
    protected void btnupdate_Click(object sender, EventArgs e)
    {
        EmpServiceClient proxy = new EmpServiceClient("BasicHttpBinding_IEmpService");
        var result             = new tbl_employee
        {
            Ecode  = int.Parse(txtecode.Text),
            salary = int.Parse(txtsalary.Text)
        };

        proxy.UpdateEmp(result);
        GridView1.DataSource = proxy.GetAllEmps().ToList();
        GridView1.DataBind();
    }