Exemple #1
0
 private void LoadGroup()
 {
     using (var helper = new DbHelper.Classes())
     {
         var groups = helper.ListGroupsOfClass(ClassId);
         //if(groups)
     }
 }
Exemple #2
0
 protected void ddlClass_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (ddlClass.SelectedIndex == 0)
     {
         pnlGroup.Visible = false;
     }
     else
     {
         using (var helper = new DbHelper.Classes())
         {
             var grps = helper.ListGroupsOfClass(Convert.ToInt32(ddlClass.SelectedValue));
             ddlGroupValue.DataSource = grps;
             ddlGroupValue.DataBind();
             pnlGroup.Visible = grps != null;
         }
     }
 }