protected void Button1_Click(object sender, EventArgs e) { string value = TextBox1.Text; ServiceReference1.Service1Client objService = new ServiceReference1.Service1Client(); double strRetrunValue = objService.GetStudentCGPA(Convert.ToInt32(value)); Label1.Text = strRetrunValue.ToString(); }