private void btnUpdate_Click(object sender, EventArgs e) { res.Tables[0].AcceptChanges(); ViewMarksWS.ViewMarksWebService vmws = new PakTurk_school_system.ViewMarksWS.ViewMarksWebService(); string s; s = vmws.SaveStudentMarksBLL(t.li.user, cmbClass.Text, cmbSubject.Text, ref res); MessageBox.Show(s, "Report"); }
private void btnSave_Click(object sender, EventArgs e) { if (cmbClass.Text == "" || cmbSubject.Text == "") { MessageBox.Show("All Fields must be provided", "Attention!"); } else { res.Tables[0].Rows[0].AcceptChanges(); //MessageBox.Show(res.Tables[0].Rows[0][4].ToString(), "checking"); ViewMarksWS.ViewMarksWebService vmws = new PakTurk_school_system.ViewMarksWS.ViewMarksWebService(); string s; s = vmws.SaveStudentMarksBLL(t.li.user, cmbClass.Text, cmbSubject.Text, ref res); MessageBox.Show(s, "Report"); } }