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

        dsCat = bl.GetCitiesDataSet();

        ddlFrom.DataSource     = dsCat;
        ddlFrom.DataTextField  = "cityName";
        ddlFrom.DataValueField = "cityId";
        ddlFrom.DataBind();
        ddlFrom.Items.Insert(0, "Select City");
    }