コード例 #1
0
    private void fillCoach()
    {
        ddlCoachType.Items.Clear();
        DataSet dsCat = new DataSet();

        dsCat = bl.GetCoachDataSet();

        ddlCoachType.DataSource     = dsCat;
        ddlCoachType.DataTextField  = "coachName";
        ddlCoachType.DataValueField = "coachId";
        ddlCoachType.DataBind();
        ddlCoachType.Items.Insert(0, "--Any--");
    }