//Delete Subject
 public void deleteSubject(long id)
 {
     try
     {
         string message = Edal.deleteSubject(id);
         getSubjects();
         lblError.Visible         = true;
         lblSuccess.Visible       = false;
         lblError.Text            = message;
         txtSubject.Text          = "";
         ddlClasses.SelectedIndex = -1;
     }
     catch (Exception ex)
     {
         lblError.Visible   = true;
         lblSuccess.Visible = false;
         lblError.Text      = ex.ToString();
     }
 }