Example #1
0
    void loadSchool()
    {
        DataTable dbSchool = objSchool.GetAll();

        drvSchool.DataSource     = dbSchool;
        drvSchool.DataTextField  = "School_Name";
        drvSchool.DataValueField = "ID";
        drvSchool.DataBind();
    }
Example #2
0
    void loadSchool()
    {
        DataTable db = objSchool.GetAll();

        drvSelectSchool.DataSource     = db;
        drvSelectSchool.DataTextField  = "School_Name";
        drvSelectSchool.DataValueField = "ID";
        drvSelectSchool.DataBind();
        drvSelectSchool.Items.Insert(0, new ListItem("Khác", "-99"));
    }
Example #3
0
    void loadData()
    {
        DataTable dbSchool = objSchool.GetAll();

        CollectionPager1.DataSource = dbSchool.DefaultView;
        CollectionPager1.DataBind();
        CollectionPager1.PageSize      = int.MaxValue;
        CollectionPager1.BindToControl = rptData;
        rptData.DataSource             = CollectionPager1.DataSourcePaged;
        rptData.DataBind();
    }
Example #4
0
 public DataTable GetAllSchool()
 {
     return(objSchool.GetAll());
 }