Beispiel #1
0
    protected void lbDataTypeUsableDataBind(string programID)
    {
        lbDataTypeUsable.Items.Clear();

        Model.ElementRelation[] mers = dbll.getUsableElementsByCPID(programID);
        for (int i = 0; i < mers.Length; i++)
        {
            ListItem li = new ListItem();
            li.Value = mers[i].ElementID.ToString();
            li.Text  = mers[i].ElementNameCN;
            lbDataTypeUsable.Items.Add(li);
        }
    }