Beispiel #1
0
    protected void btndelete_Click(object sender, EventArgs e)
    {
        EmpServiceClient proxy = new EmpServiceClient("BasicHttpBinding_IEmpService");
        var Ecode = int.Parse(txtecode.Text);

        proxy.DeleteEmp(Ecode);
        GridView1.DataSource = proxy.GetAllEmps().ToList();
        GridView1.DataBind();
    }