Esempio n. 1
0
    protected void lbStationUsableDataBind(string programID)
    {
        lbStationUsable.Items.Clear();

        Model.StationRelation[] msrs = dbll.getUsableStationsByCPID(programID);
        for (int i = 0; i < msrs.Length; i++)
        {
            ListItem li = new ListItem();
            li.Value = msrs[i].StationID.ToString() + "#" + msrs[i].StationTableID.ToString();
            li.Text  = msrs[i].StationName + " ( " + msrs[i].StationID.ToString() + " ) ";
            lbStationUsable.Items.Add(li);
        }
    }