protected void btnres_Click(object sender, EventArgs e) { ServiceReference1.Service1Client s = new ServiceReference1.Service1Client(); ServiceReference1.Employee emp = new ServiceReference1.Employee(); emp = s.GetEmployeeData(int.Parse(eid.Text)); ename.Text = emp.Name; egender.Text = emp.Gender; }