Пример #1
0
 protected void populateChannels()
 {
     ServiceInterface server = new ServiceInterface();
     List<WebChannel> channels=null;
     if (cbChannelType.SelectedIndex == 1)
       channels = server.GetChannelsInTvGroup(Int32.Parse(cbGroup.SelectedValue));
     else if (cbChannelType.SelectedIndex == 2)
       channels = server.GetChannelsInRadioGroup(Int32.Parse(cbGroup.SelectedValue));
     cbChannel.Items.Clear();
     foreach (WebChannel ch in channels)
       cbChannel.Items.Add(new ListItem(ch.displayName, ch.idChannel.ToString()));
     cbChannel.SelectedIndex = 0;
     lChannel.Text = cbChannel.SelectedItem.Text;
     hfIdChannel.Value = cbChannel.SelectedItem.Value;
 }