Exemple #1
0
 private void LoadList()
 {
     ddlModel.DataTextField  = "name";
     ddlModel.DataValueField = "id";
     ddlModel.DataSource     = oModelsProperties.Gets(1, 1);
     ddlModel.DataBind();
     ddlModel.Items.Insert(0, new ListItem("-- SELECT --", "0"));
 }
        public void LoadLists(int _platformid)
        {
            //Model
            ddlModel.DataTextField  = "name";
            ddlModel.DataValueField = "id";
            ddlModel.DataSource     = oModelsProperties.Gets(0, 1);// oModelsProperties.GetPlatforms(0, _platformid, 1);
            ddlModel.DataBind();
            ddlModel.Items.Insert(0, new ListItem("-- SELECT --", "0"));

            //Class
            ddlClass.DataTextField  = "name";
            ddlClass.DataValueField = "id";
            ddlClass.DataSource     = oClass.Gets(1);
            ddlClass.DataBind();
            ddlClass.Items.Insert(0, new ListItem("-- SELECT --", "0"));
        }