Exemple #1
0
    public void BindTrainers()
    {
        DataTable dt = BLL_Crew_Training.Get_Crew_Trainers(GetSessionUserID());

        gvTrainers.DataSource = dt;
        gvTrainers.DataBind();
    }
Exemple #2
0
    protected void ImgExpExcel_Click(object sender, EventArgs e)
    {
        DataTable dt = BLL_Crew_Training.Get_Crew_Trainers(GetSessionUserID());

        string[] HeaderCaptions  = { "Trainer Name" };
        string[] DataColumnsName = { "TrainerName" };

        GridViewExportUtil.ShowExcel(dt, HeaderCaptions, DataColumnsName, "CrewTrainers", "Crew Trainers", "");
    }
Exemple #3
0
    protected void Load_Trainers()
    {
        DataTable dt = BLL_Crew_Training.Get_Crew_Trainers(GetSessionUserID());

        ddlTrainer.DataSource     = dt;
        ddlTrainer.DataValueField = "LibUserID";
        ddlTrainer.DataTextField  = "TrainerName";
        ddlTrainer.DataBind();
    }