Создание веб-приложения, сочетающего в себе проектирование и создание баз данных, работу со сторонними форматами данных, программирование в NET и веб-разработку, страница 107

                else

                {

                    PowerPlayUserProvider.getGames(GridView2, filtr_teams.SelectedValue, -1, null, "khl20122013_1");

                    build_table();

                }

            }

            else if (((DropDownList)sender).SelectedItem.Text.Equals("Сыгранные"))

            {

                if (filtr_teams.SelectedValue.Equals("Все") || filtr_teams.SelectedValue == null || filtr_teams.SelectedValue.Equals("") || filtr_teams.SelectedValue.Equals(" ") || filtr_teams.SelectedValue.Equals(" "))

                {

                    PowerPlayUserProvider.getGames(GridView2, null, 1, null, "khl20122013_1");

                    build_table();

                }

                else

                {

                    PowerPlayUserProvider.getGames(GridView2, filtr_teams.SelectedValue, 1, null, "khl20122013_1");

                    build_table();

                }

            }

            else if (((DropDownList)sender).SelectedItem.Text.Equals("Несыгранные"))

            {

                if (filtr_teams.SelectedValue.Equals("Все") || filtr_teams.SelectedValue == null || filtr_teams.SelectedValue.Equals("") || filtr_teams.SelectedValue.Equals(" ") || filtr_teams.SelectedValue.Equals(" "))

                {

                    PowerPlayUserProvider.getGames(GridView2, null, 0, null, "khl20122013_1");

                    build_table();

                }

                else

                {

                    PowerPlayUserProvider.getGames(GridView2, filtr_teams.SelectedValue, 0, null, "khl20122013_1");

                    build_table();

                }

            }

        }

        protected void filtr_teams_SelectedIndexChanged(object sender, EventArgs e)

        {

            if (((DropDownList)sender).SelectedItem.Text.Equals("Все") || ((DropDownList)sender).SelectedItem.Text.Equals("") || ((DropDownList)sender).SelectedItem.Text.Equals(" ") || ((DropDownList)sender).SelectedItem.Text.Equals(" ") || ((DropDownList)sender).SelectedItem == null)

            {

                if (filtr_stats.SelectedValue.Equals("Сыгранные"))

                {

                    PowerPlayUserProvider.getGames(GridView2, null, 1, null, "khl20122013_1");

                    build_table();

                }

                else if (filtr_stats.SelectedValue.Equals("Несыгранные"))

                {

                    PowerPlayUserProvider.getGames(GridView2, null, 0, null, "khl20122013_1");

                    build_table();

                }

                else

                {

                    PowerPlayUserProvider.getGames(GridView2, null, -1, null, "khl20122013_1");

                    build_table();

                }

            }

            else

            {

                if (filtr_stats.SelectedValue.Equals("Сыгранные"))

                {

                    PowerPlayUserProvider.getGames(GridView2, filtr_teams.SelectedValue, 1, null, "khl20122013_1");

                    build_table();

                }

                else if (filtr_stats.SelectedValue.Equals("Несыгранные"))

                {

                    PowerPlayUserProvider.getGames(GridView2, filtr_teams.SelectedValue, 0, null, "khl20122013_1");

                    build_table();

                }

                else

                {

                    PowerPlayUserProvider.getGames(GridView2, filtr_teams.SelectedValue, -1, null,"khl20122013_1");

                    build_table();

                }

            }

        }

    }

}