protected void AddButtonClick(object sender, CommandEventArgs e)
    {
        Dictionary <int, string> golferNames = DatabaseFunctions.GetGolferNamesAndIDs(leagueID.ToString());

        DropdownGolfer1.Items.Clear();
        DropdownGolfer2.Items.Clear();

        DropDownGolfer3.Items.Add(new ListItem("None", "0"));

        foreach (int golferID in golferNames.Keys)
        {
            ListItem temp = new ListItem(golferNames[golferID], golferID.ToString());
            DropdownGolfer1.Items.Add(temp);
            DropdownGolfer2.Items.Add(temp);
            DropDownGolfer3.Items.Add(temp);
        }

        ButtonAddSubmit.CommandArgument = "0";
        ModalPopupExtenderAdd.Show();
    }
Beispiel #2
0
 protected void BtnTbhDosen_Click(object sender, EventArgs e)
 {
     ModalPopupExtenderAdd.Show();
 }