Exemple #1
0
    private void Refresh()
    {
        DataTable dt = CourseRegManager.GetClassDetailsInfo();

        ddlCourseTrac.DataSource     = dt;
        ddlCourseTrac.DataValueField = "id";
        ddlCourseTrac.DataTextField  = "TracName";
        ddlCourseTrac.DataBind();
        ddlCourseTrac.Items.Insert(0, new System.Web.UI.WebControls.ListItem(""));

        DataTable dts = CourseRegManager.GetAllDaysInfor("");
        //ddlDays.DataSource = dts;
        //ddlDays.DataValueField = "id";
        //ddlDays.DataTextField = "TracName";
        //ddlDays.DataBind();
        //ddlDays.Items.Insert(0, new System.Web.UI.WebControls.ListItem(""));
        DataTable dtst = StudentManager.GetAllStudentSearch("", "", "", "");

        HistoryGridView.DataSource = dtst;
        HistoryGridView.DataBind();
        dgSubSedule.DataSource = null;
        dgSubSedule.DataBind();

        hfID.Value = "";
    }
Exemple #2
0
    public DataTable PopulateItem()
    {
        DataTable dtitm = CourseRegManager.GetAllDaysInfor("");
        DataRow   dr    = dtitm.NewRow();

        dtitm.Rows.InsertAt(dr, 0);
        return(dtitm);
    }