protected void RBModify_Click(object sender, EventArgs e) { AbcDAL MyDAL = new AbcDAL(""); if (ClassID != null) { MyDAL.UpdateClassGradeByStudentID(RCBStudentName.SelectedValue.ToString().Trim(), RDDLAttendance.SelectedText, RDDLGrade.SelectedText, ClassID); Response.Redirect("Progress.aspx?MsgPos=5&MsgType=warning&MsgContent=Data successfully modified"); } else { Response.Redirect("Progress.aspx?MsgPos=5&MsgType=warning&MsgContent=ERROR LAH WALAO"); } }