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

                    }

                    PowerPlayUserProvider.getTeamByNameOfTeam(PowerPlayUserProvider.getTeamById(Convert.ToInt32(GridView2.Rows[0].Cells[2].Text)), GridView2);

                    if (GridView2.Rows[0].Cells[5].Text == null || GridView2.Rows[0].Cells[5].Text.Equals("") || GridView2.Rows[0].Cells[5].Text.Equals(" "))

                    {

                        game_prev_team.Text = "<img id=\"game_prev_logo\" src=\"/img/teams_logo/default.jpg\" height=\"80px\" /><br/>" + GridView2.Rows[0].Cells[2].Text + "<br/>(" + GridView2.Rows[0].Cells[3].Text + ")";

                    }

                    else

                    {

                        game_prev_team.Text = "<img id=\"game_prev_logo\" src=\"" + GridView2.Rows[0].Cells[5].Text + "\" height=\"80px\" /><br/>" + GridView2.Rows[0].Cells[2].Text + "<br/>(" + GridView2.Rows[0].Cells[3].Text + ")";

                    }

                }

                else

                {

                    game_prev_issue.Text = "Матч не найден";

                }

                GridView2 = new GridView();

            }

        }

        private void game_next()

        {

            if (table_next_game.Visible == true)

            {

                PowerPlayUserProvider.getNextGamesForTeam(GridView2, team, "khl20122013_1");

                if (GridView2.Rows.Count > 0)

                {

                    game_next_date.Text = "#" + GridView2.Rows[0].Cells[0].Text + " Тур: " + GridView2.Rows[0].Cells[1].Text;

                    if (GridView2.Rows[0].Cells[2].Text == team)

                    {

                        game_next_place.Text = "Дома";

                        PowerPlayUserProvider.getTeamByNameOfTeam(GridView2.Rows[0].Cells[3].Text, GridView2);

                    }

                    else if (GridView2.Rows[0].Cells[3].Text == team)

                    {

                        game_next_place.Text = "На выезде";

                        PowerPlayUserProvider.getTeamByNameOfTeam(GridView2.Rows[0].Cells[2].Text, GridView2);

                    }

                    game_next_team.Text = "<a style=\"font-size:33px\">" + GridView2.Rows[0].Cells[2].Text + "</a><br/><a style=\"font-size:25px\">(" + GridView2.Rows[0].Cells[3].Text + ")</a>";

                    if (GridView2.Rows[0].Cells[5].Text == null || GridView2.Rows[0].Cells[5].Text.Equals("") || GridView2.Rows[0].Cells[5].Text.Equals("&nbsp;"))

                    {

                        game_next_team_logo.Text = "<img id=\"game_next_logo\" src=\"/img/teams_logo/default.jpg\" height=\"80px\" /><br/>";

                    }

                    else

                    {

                        game_next_team_logo.Text = "<img id=\"game_next_logo\" src=\"" + GridView2.Rows[0].Cells[5].Text + "\" height=\"80px\" /><br/>" + GridView2.Rows[0].Cells[2].Text + "<br/>(" + GridView2.Rows[0].Cells[3].Text + ")";

                    }

                }

                else

                {

                    game_next_place.Text = "Матч не найден";

                }

                GridView2 = new GridView();

            }

        }

    }

}

Е.7 Файл statistics.aspx.cs

namespace powerplay.account.office

{              

    public partial class statistics : System.Web.UI.Page

    {

        GridView GridView2 = new GridView();

        string team="";